62#if FW_AMPCS_COMPATIBLE
69 return buffer.
serialize(
reinterpret_cast<const U8*
>(this->
toChar()),strSize,
true);
79#if FW_AMPCS_COMPATIBLE
86 strSize =
FW_MIN(maxSize,strSize);
87 stat = buffer.
deserialize(
reinterpret_cast<U8*
>(raw),strSize,
true);
89 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_TLM_STRING_MAX_SIZE
Max size of channelized telemetry string type.
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.
const char * toChar() const override
NATIVE_UINT_TYPE getCapacity() const override
return size of buffer
SerializeStatus serialize(SerializeBufferBase &buffer) const override
serialization function
TlmString & operator=(const TlmString &other)
assignment operator
SerializeStatus deserialize(SerializeBufferBase &buffer) override
deserialization function
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.