Class that stores a pointer to a byte array and its size. Not responsible for memory management.
More...
Default constructor. Creates an empty DataBlock of zero size with a zero pointer to a byte array
Constructor. Creates DataBlock with a user-defined byte array
- Parameters
-
ptr | Pointer to the byte array |
size | Size of the byte array |
DataBlock |
( |
const services::SharedPtr< byte > & |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Constructor. Creates DataBlock with a user-defined byte array
- Parameters
-
ptr | Pointer to the byte array |
size | Size of the byte array |
Constructor. Creates an empty DataBlock of a predefined size
- Parameters
-
size | Size of the byte array |
Copy constructor. Copies a pointer and the size stored in another DataBlock
- Parameters
-
virtual byte* getPtr |
( |
| ) |
const |
|
inlinevirtual |
virtual services::SharedPtr<byte> getSharedPtr |
( |
| ) |
const |
|
inlinevirtual |
virtual size_t getSize |
( |
| ) |
const |
|
inlinevirtual |
virtual void setPtr |
( |
byte * |
ptr | ) |
|
|
inlinevirtual |
Sets a pointer to a byte array
- Parameters
-
[in] | ptr | Pointer to the byte array |
Implements DataBlockIface.
virtual void setPtr |
( |
const services::SharedPtr< byte > & |
ptr | ) |
|
|
inlinevirtual |
Sets a pointer to a byte array
- Parameters
-
[in] | ptr | Pointer to the byte array |
Implements DataBlockIface.
virtual void setSize |
( |
size_t |
size | ) |
|
|
inlinevirtual |
Sets the size of a byte array
- Parameters
-
[in] | size | Size of the byte array |
Implements DataBlockIface.
The documentation for this class was generated from the following file: