 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
12 this->copyBuff(src,
sizeof(this->m_buf));
16 this->copyBuff(src.
toChar(),
sizeof(this->m_buf));
20 this->copyBuff(src.m_buf,
sizeof(this->m_buf));
31 return strnlen(this->m_buf,
sizeof(this->m_buf));
38 void InternalInterfaceString::copyBuff(
const char* buff,
NATIVE_UINT_TYPE size) {
41 if (buff != this->m_buf) {
42 (void)strncpy(this->m_buf,buff,size);
44 this->terminate(
sizeof(this->m_buf));
59 this->terminate(maxSize);
69 this->copyBuff(other.m_buf,this->getCapacity());
75 this->m_buf[size <
sizeof(this->m_buf)?size:
sizeof(this->m_buf)-1] = 0;
Declares ISF string base class.
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialization function
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialization function
SerializeStatus
forward declaration for string
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
NATIVE_UINT_TYPE length(void) const
returns length of stored string
virtual const char * toChar(void) const =0
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
~InternalInterfaceString(void)
destructor
const InternalInterfaceString & operator=(const InternalInterfaceString &other)
equal operator
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
const char * toChar(void) const
gets char buffer
Declares ISF basic types.
#define FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
Max size of interface string parameter type.
InternalInterfaceString(void)
default constructor