Class that stores a pointer to a byte array and its size. Not responsible for memory management.
More...
◆ DataBlock() [1/5]
Default constructor. Creates an empty DataBlock of zero size with a zero pointer to a byte array
◆ DataBlock() [2/5]
Constructor. Creates DataBlock with a user-defined byte array
- Parameters
-
ptr | Pointer to the byte array |
size | Size of the byte array |
◆ DataBlock() [3/5]
Constructor. Creates DataBlock with a user-defined byte array
- Parameters
-
ptr | Pointer to the byte array |
size | Size of the byte array |
◆ DataBlock() [4/5]
Constructor. Creates an empty DataBlock of a predefined size
- Parameters
-
size | Size of the byte array |
◆ DataBlock() [5/5]
Copy constructor. Copies a pointer and the size stored in another DataBlock
- Parameters
-
◆ getPtr()
virtual byte* getPtr |
( |
| ) |
const |
|
inlinevirtual |
◆ getSharedPtr()
◆ getSize()
virtual size_t getSize |
( |
| ) |
const |
|
inlinevirtual |
◆ setPtr() [1/2]
virtual void setPtr |
( |
byte * |
ptr | ) |
|
|
inlinevirtual |
Sets a pointer to a byte array
- Parameters
-
[in] | ptr | Pointer to the byte array |
Implements DataBlockIface.
◆ setPtr() [2/2]
Sets a pointer to a byte array
- Parameters
-
[in] | ptr | Pointer to the byte array |
Implements DataBlockIface.
◆ setSize()
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: