Go to the documentation of this file.
47 namespace simple_serialize
141 void copyTo(std::vector<char> & out);
309 __attribute__((deprecated(
"This ptr will be invalid once buffer is changed. Please use: copyTo(vector<char>) instead.")))
311 char* getRawDataPtr();
364 #endif //BYTE_ARRAY_H
ByteArray(void)
Default constructor.
void copyTo(std::vector< char > &out)
Copy to std::vector, for raw-ptr access.
bool unload(industrial::shared_types::shared_bool &value)
unloads a boolean value from the byte array
unsigned int getMaxBufferSize()
gets current buffer size
static bool isByteSwapEnabled()
returns true if byte swapping is enabled (this is a global option set by compiler flag)....
~ByteArray(void)
Destructor.
The byte array wraps a dynamic array of bytes (i.e. char).
void init()
Initializes or Reinitializes an empty buffer.
void copyFrom(ByteArray &buffer)
Deep-Copy.
std::vector< char > getRawDataPtr_buffer_
temporary continuous buffer for getRawDataPtr() use
Interface for loading and unloading a class to/from a ByteArray.
bool load(industrial::shared_types::shared_bool value)
loads a boolean into the byte array
__attribute__((deprecated("This ptr will be invalid once buffer is changed. Please use: copyTo(vector<char>) instead."))) char *getRawDataPtr()
returns a char* pointer to the raw data. WARNING: This method is meant for read-only operations
bool unloadFront(industrial::shared_types::shared_real &value)
unloads a double value from the beginning of the byte array. If byte swapping is enabled,...
unsigned int getBufferSize()
gets current buffer size
std::deque< char > buffer_
internal data buffer
simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53