21 void FilePacket::PathName ::
22 initialize(
const char *
const value)
25 this->length = length;
29 U32 FilePacket::PathName ::
32 return sizeof(this->length) + this->length;
50 serialBuffer.
popBytes(bytes, this->length);
53 this->value =
reinterpret_cast<const char*
>(addrLeft);
61 toSerialBuffer(SerialBuffer& serialBuffer)
const
66 serialBuffer.serialize(this->length);
73 reinterpret_cast<const U8 *
>(this->value),
uint8_t U8
8-bit unsigned integer
A variable-length serializable buffer.
SerializeStatus popBytes(U8 *const addr, NATIVE_UINT_TYPE n)
Pop n bytes off the buffer.
const U8 * getBuffAddrLeft() const
gets address of remaining non-deserialized data.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
U32 string_length(const CHAR *source, U32 max_len)
get the length of the source string or max_len if the string is longer than max_len.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.