소스 검색

express: Add docstring to DatagramIterator about Datagram lifetime

Related to #1262

[skip ci]
rdb 3 년 전
부모
커밋
ac3aa64d33
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      panda/src/express/datagramIterator.h

+ 3 - 0
panda/src/express/datagramIterator.h

@@ -23,6 +23,9 @@
  * A class to retrieve the individual data elements previously stored in a
  * Datagram.  Elements may be retrieved one at a time; it is up to the caller
  * to know the correct type and order of each element.
+ *
+ * Note that it is the responsibility of the caller to ensure that the datagram
+ * object is not destructed while this DatagramIterator is in use.
  */
 class EXPCL_PANDA_EXPRESS DatagramIterator {
 public: