RTI Connext Java API
Version 5.1.0
|
Built-in type consisting of a variable-length array of opaque bytes. More...
Public Member Functions | |
Bytes () | |
Default Constructor. | |
Bytes (Bytes src) | |
Copy constructor. | |
Bytes (int theLength) | |
Constructor that specifies the size of the allocated bytes array. | |
Bytes (byte[] src) | |
Object | copy_from (Object src) |
Copy src into this object. | |
Public Member Functions inherited from Copyable | |
Object | copy_from (Object src) |
Copy value of a data type from source. | |
Public Attributes | |
int | length |
Number of bytes to serialize. | |
int | offset |
Offset from which to start serializing bytes . | |
byte[] | value |
com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes array value. | |
Built-in type consisting of a variable-length array of opaque bytes.
Bytes | ( | ) |
Default Constructor.
The default constructor initializes the newly created object with null value, zero length, and zero offset.
Copy constructor.
src | <<in>> Object to copy from. |
NullPointerException | if src is null. |
Bytes | ( | int | theLength | ) |
Constructor that specifies the size of the allocated bytes array.
After this method is called, length and offset are set to zero.
size | <<in>> Size of the allocated bytes array. |
IllegalArgumentException | if size is negative |
Bytes | ( | byte[] | src | ) |
Create a new Bytes object to wrap the given array.
The value
field will point to the given array. The offset
will be set to 0. The length
will be set to the length of the array unless the array is null, in which case the length
will be set to 0 also.
Object copy_from | ( | Object | src | ) |
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. |
NullPointerException | if src is null. |
int length |
Number of bytes to serialize.
int offset |
Offset from which to start serializing bytes .
The first position of the bytes array has offset 0.
byte [] value |
com.rti.dds.type.builtin.com.rti.dds.type.builtin.Bytes array value.