Fix Doxygen comment formatting and typos
This commit is contained in:
@@ -254,7 +254,7 @@ class PacketMetadata
|
||||
|
||||
/**
|
||||
* \brief Get the metadata serialized size
|
||||
* \return the seralized size
|
||||
* \return the serialized size
|
||||
*/
|
||||
uint32_t GetSerializedSize() const;
|
||||
|
||||
@@ -266,17 +266,17 @@ class PacketMetadata
|
||||
ItemIterator BeginItem(Buffer buffer) const;
|
||||
|
||||
/**
|
||||
* \brief Serialization to raw uint8_t*
|
||||
* \param buffer the buffer to serialize to
|
||||
* \param maxSize the maximum serialization size
|
||||
* \return 1 on success, 0 on failure
|
||||
* \brief Serialization to raw uint8_t*
|
||||
* \param buffer the buffer to serialize to
|
||||
* \param maxSize the maximum serialization size
|
||||
* \return 1 on success, 0 on failure
|
||||
*/
|
||||
uint32_t Serialize(uint8_t* buffer, uint32_t maxSize) const;
|
||||
/**
|
||||
* \brief Deserialization from raw uint8_t*
|
||||
* \param buffer the buffer to deserialize from
|
||||
* \param size the size
|
||||
* \return 1 on success, 0 on failure
|
||||
* \brief Deserialization from raw uint8_t*
|
||||
* \param buffer the buffer to deserialize from
|
||||
* \param size the size
|
||||
* \return 1 on success, 0 on failure
|
||||
*/
|
||||
uint32_t Deserialize(const uint8_t* buffer, uint32_t size);
|
||||
|
||||
@@ -424,8 +424,7 @@ class PacketMetadata
|
||||
uint32_t m_count;
|
||||
/** size (in bytes) of m_data buffer below */
|
||||
uint16_t m_size;
|
||||
/** max of the m_used field over all objects which
|
||||
* reference this struct Data instance */
|
||||
/** max of the m_used field over all objects which reference this struct Data instance */
|
||||
uint16_t m_dirtyEnd;
|
||||
/** variable-sized buffer of bytes */
|
||||
uint8_t m_data[PACKET_METADATA_DATA_M_DATA_SIZE];
|
||||
@@ -443,41 +442,41 @@ class PacketMetadata
|
||||
struct SmallItem
|
||||
{
|
||||
/** offset (in bytes) from start of m_data buffer
|
||||
to next element in linked list. value is 0xffff
|
||||
if next element does not exist.
|
||||
stored as a fixed-size 16 bit integer.
|
||||
to next element in linked list. value is 0xffff
|
||||
if next element does not exist.
|
||||
stored as a fixed-size 16 bit integer.
|
||||
*/
|
||||
uint16_t next;
|
||||
/** offset (in bytes) from start of m_data buffer
|
||||
to previous element in linked list. value is 0xffff
|
||||
if previous element does not exist.
|
||||
stored as a fixed-size 16 bit integer.
|
||||
to previous element in linked list. value is 0xffff
|
||||
if previous element does not exist.
|
||||
stored as a fixed-size 16 bit integer.
|
||||
*/
|
||||
uint16_t prev;
|
||||
/** the high 31 bits of this field identify the
|
||||
type of the header or trailer represented by
|
||||
this item: the value zero represents payload.
|
||||
If the low bit of this uid is one, an ExtraItem
|
||||
structure follows this SmallItem structure.
|
||||
stored as a variable-size 32 bit integer.
|
||||
type of the header or trailer represented by
|
||||
this item: the value zero represents payload.
|
||||
If the low bit of this uid is one, an ExtraItem
|
||||
structure follows this SmallItem structure.
|
||||
stored as a variable-size 32 bit integer.
|
||||
*/
|
||||
uint32_t typeUid;
|
||||
/** the size (in bytes) of the header or trailer represented
|
||||
by this element.
|
||||
stored as a variable-size 32 bit integer.
|
||||
by this element.
|
||||
stored as a variable-size 32 bit integer.
|
||||
*/
|
||||
uint32_t size;
|
||||
/** this field tries to uniquely identify each header or
|
||||
trailer _instance_ while the typeUid field uniquely
|
||||
identifies each header or trailer _type_. This field
|
||||
is used to test whether two items are equal in the sense
|
||||
that they represent the same header or trailer instance.
|
||||
That equality test is based on the typeUid and chunkUid
|
||||
fields so, the likelihood that two header instances
|
||||
share the same chunkUid _and_ typeUid is very small
|
||||
unless they are really representations of the same header
|
||||
instance.
|
||||
stored as a fixed-size 16 bit integer.
|
||||
trailer _instance_ while the typeUid field uniquely
|
||||
identifies each header or trailer _type_. This field
|
||||
is used to test whether two items are equal in the sense
|
||||
that they represent the same header or trailer instance.
|
||||
That equality test is based on the typeUid and chunkUid
|
||||
fields so, the likelihood that two header instances
|
||||
share the same chunkUid _and_ typeUid is very small
|
||||
unless they are really representations of the same header
|
||||
instance.
|
||||
stored as a fixed-size 16 bit integer.
|
||||
*/
|
||||
uint16_t chunkUid;
|
||||
};
|
||||
@@ -488,19 +487,19 @@ class PacketMetadata
|
||||
struct ExtraItem
|
||||
{
|
||||
/** offset (in bytes) from start of original header to
|
||||
the start of the fragment still present.
|
||||
stored as a variable-size 32 bit integer.
|
||||
the start of the fragment still present.
|
||||
stored as a variable-size 32 bit integer.
|
||||
*/
|
||||
uint32_t fragmentStart;
|
||||
/** offset (in bytes) from start of original header to
|
||||
the end of the fragment still present.
|
||||
stored as a variable-size 32 bit integer.
|
||||
the end of the fragment still present.
|
||||
stored as a variable-size 32 bit integer.
|
||||
*/
|
||||
uint32_t fragmentEnd;
|
||||
/** the packetUid of the packet in which this header or trailer
|
||||
was first added. It could be different from the m_packetUid
|
||||
field if the user has aggregated multiple packets into one.
|
||||
stored as a fixed-size 64 bit integer.
|
||||
was first added. It could be different from the m_packetUid
|
||||
field if the user has aggregated multiple packets into one.
|
||||
stored as a fixed-size 64 bit integer.
|
||||
*/
|
||||
uint64_t packetUid;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user