RTI Connext .Net APIs
Version 5.0.0
|
Built-in type consisting of a variable-length array of opaque bytes and a string that is the key. More...
#include <managed_keyedbytes.h>
Public Member Functions | |
KeyedBytes () | |
Default Constructor. | |
KeyedBytes (System::Int32 size) | |
Constructor that specifies the allocated sizes. | |
virtual System::Boolean | copy_from (KeyedBytes^ src) |
Copy src into this object. | |
Public Attributes | |
System::String^ | key |
Instance key associated with the specified value. | |
System::Int32 | length |
Number of bytes to serialize. | |
System::Int32 | offset |
Offset from which to start serializing bytes . | |
array< System::Byte >^ | value |
DDS::Bytes array value. | |
Built-in type consisting of a variable-length array of opaque bytes and a string that is the key.
DDS::KeyedBytes::KeyedBytes | ( | ) |
Default Constructor.
The default constructor initializes the newly created object with empty key, null value, zero length, and zero offset.
DDS::KeyedBytes::KeyedBytes | ( | System::Int32 | size | ) |
Constructor that specifies the allocated sizes.
After this method is called, key is initialized with the empty string and length and offset are set to zero.
size | <<in>> Size of the allocated bytes array. |
|
virtual |
Copy src into this object.
This method performs a deep copy of src
and it allocates memory for the value if required.
src | <<in>> Object to copy from. |
ArgumentNullException | if src is null. |
System::String ^ DDS::KeyedBytes::key |
Instance key associated with the specified value.
System::Int32 DDS::KeyedBytes::length |
Number of bytes to serialize.
System::Int32 DDS::KeyedBytes::offset |
Offset from which to start serializing bytes .
The first position of the bytes array has offset 0.
array<System::Byte> ^ DDS::KeyedBytes::value |
DDS::Bytes array value.