RTI Connext .Net APIs  Version 5.1.0
DDS::Bytes Struct Reference

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

#include <managed_bytes.h>

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

Public Member Functions

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

Public Attributes

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.
 

Detailed Description

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

Constructor & Destructor Documentation

DDS::Bytes::Bytes ( )

Default Constructor.

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

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

Constructor that specifies the size of the allocated bytes array.

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

Parameters
size<<in>> Size of the allocated bytes array.

Member Function Documentation

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.

Member Data Documentation

System::Int32 DDS::Bytes::length

Number of bytes to serialize.

System::Int32 DDS::Bytes::offset

Offset from which to start serializing bytes .

The first position of the bytes array has offset 0.

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

DDS::Bytes array value.


RTI Connext .Net APIs Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc