 |
F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
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) {
TlmString & operator=(const TlmString &other)
assignment operator
SerializeStatus
forward declaration for string
NATIVE_UINT_TYPE length() const
Get length of string.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
#define FW_MIN(a, b)
MIN macro.
const char * toChar() const override
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus deserialize(SerializeBufferBase &buffer) override
deserialization function
#define FW_TLM_STRING_MAX_SIZE
Max size of channelized telemetry string type.
virtual const CHAR * toChar() const =0
SerializeStatus serialize(SerializeBufferBase &buffer) const override
serialization function
int NATIVE_INT_TYPE
native integer type declaration
NATIVE_UINT_TYPE getCapacity() const override
return size of buffer