winlin

refine summary for amf0 hpp

@@ -62,6 +62,12 @@ class __SrsAmf0ObjectEOF; @@ -62,6 +62,12 @@ class __SrsAmf0ObjectEOF;
62 // SrsAmf0Object* obj = SrsAmf0Any::object(); 62 // SrsAmf0Object* obj = SrsAmf0Any::object();
63 // 5. SrsAmf0EcmaArray: create the amf0 ecma array. 63 // 5. SrsAmf0EcmaArray: create the amf0 ecma array.
64 // SrsAmf0EcmaArray* arr = SrsAmf0Any::ecma_array(); 64 // SrsAmf0EcmaArray* arr = SrsAmf0Any::ecma_array();
  65 +//
  66 +// please carefully the size and count of amf0 any:
  67 +// 1. total_size(): the total memory size the object wrote to buffer.
  68 +// 2. count(): the total element count of object, for instance, the properties
  69 +// of amf0 object, used for key_at/value_at loop.
  70 +//
65 // for detail usage, see interfaces of each object. 71 // for detail usage, see interfaces of each object.
66 //////////////////////////////////////////////////////////////////////// 72 ////////////////////////////////////////////////////////////////////////
67 //////////////////////////////////////////////////////////////////////// 73 ////////////////////////////////////////////////////////////////////////