63#if FW_AMPCS_COMPATIBLE
70 return buffer.
serialize(
reinterpret_cast<const U8*
>(this->
toChar()),strSize,
true);
80#if FW_AMPCS_COMPATIBLE
87 strSize =
FW_MIN(maxSize,strSize);
88 stat = buffer.
deserialize(
reinterpret_cast<U8*
>(raw),strSize,
true);
90 if(strSize < maxSize) {
PlatformIntType NATIVE_INT_TYPE
#define FW_MIN(a, b)
MIN macro.
uint8_t U8
8-bit unsigned integer
PlatformUIntType NATIVE_UINT_TYPE
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
const char * toChar() const override
SerializeStatus deserialize(SerializeBufferBase &buffer) override
deserialization function
LogStringArg & operator=(const LogStringArg &other)
assignment operator
NATIVE_UINT_TYPE getCapacity() const override
return size of buffer
SerializeStatus serialize(SerializeBufferBase &buffer) const override
serialization function
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
virtual const CHAR * toChar() const =0
NATIVE_UINT_TYPE length() const
Get length of string.
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.