RTI Connext .Net APIs  Version 6.0.1

Built-in type consisting of a variable-length array of opaque bytes. More...

#include <managed_bytes.h>

Inheritance diagram for DDS::Bytes:
DDS::ICopyable< Bytes^>

Public Member Functions

 Bytes ()
 Default Constructor. More...
 
 Bytes (System::Int32 size)
 Constructor that specifies the size of the allocated bytesarray. More...
 
virtual System::Boolean copy_from (Bytes^ src)
 Copy src into this object. More...
 

Public Attributes

System::Int32 length
 Number of bytesto serialize. More...
 
System::Int32 offset
 Offset from which to start serializing bytes. More...
 
array< System::Byte > ^ value
 DDS::Bytes array value. More...
 

Detailed Description

Built-in type consisting of a variable-length array of opaque bytes.

Constructor & Destructor Documentation

◆ Bytes() [1/2]

DDS::Bytes::Bytes ( )

Default Constructor.

The default constructor initializes the newly created object with null value, zero length, and zero offset.

◆ Bytes() [2/2]

DDS::Bytes::Bytes ( System::Int32  size)

Constructor that specifies the size of the allocated bytesarray.

After this method is called, length and offset are set to zero.

Parameters
size<<in>> Size of the allocated bytesarray.

Member Function Documentation

◆ copy_from()

virtual System::Boolean DDS::Bytes::copy_from ( Bytes src)
virtual

Copy src into this object.

This method performs a deep copy of src and it allocates memory for the value if required.

Parameters
src<<in>> Object to copy from.
Returns
true if success. Otherwise, false.
Exceptions
ArgumentNullExceptionif src is null.

Reimplemented from DDS::ICopyable< Bytes^>.

Member Data Documentation

◆ length

System::Int32 DDS::Bytes::length

Number of bytesto serialize.

◆ offset

System::Int32 DDS::Bytes::offset

Offset from which to start serializing bytes.

The first position of the bytesarray has offset 0.

◆ value

array<System::Byte> ^ DDS::Bytes::value

DDS::Bytes array value.


RTI Connext .Net APIs Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc