Class that represents blob primitive type. More...

#include <SPL/Runtime/Type/Blob.h>

List of all members.


Detailed Description

Class that represents blob primitive type.


Constructor & Destructor Documentation

Default constructor

Constructor. The data is copied from the memory block passed in as a parameter, into the internal buffer hold by the blob

Parameters:

Constructor. The data is copied from the list passed in as a parameter, into the internal buffer hold by the blob

Parameters:

Copy constructor

Parameters:

Destructor


Member Function Documentation

Assignment operator

Parameters:
Returns:
self

Concatenation operator

Parameters:
Returns:
self (with appended contents)

Concatenation operator

Parameters:
Returns:
self (with appended contents)

Concatenation operator

Parameters:
Returns:
self (with appended contents)

Append to a blob

Parameters:

Concatenation operator

Parameters:
Returns:
blob containing concatenation of *this and ot

Equality comparison operator

Parameters:
Returns:
true if equal, false otherwise

Non-equality comparison operator

Parameters:
Returns:
true if not equal, false otherwise

Less than comparison operator

Parameters:
Returns:
true if less than, false otherwise

Greater than or equal comparison operator

Parameters:
Returns:
true if greater than or equal, false otherwise

Greater than comparison operator

Parameters:
Returns:
true if greater than, false otherwise

Less than or equal comparison operator

Parameters:
Returns:
true if less than or equal, false otherwise

Clear the data

Element access (read-only)

Parameters:
Returns:
byte at index idx

Element access (read-only)

Parameters:
Returns:
byte at index idx

Element access (read-write)

Parameters:
Returns:
byte at index idx

Element access (read-write)

Parameters:
Returns:
byte at index idx

Get the size of the blob

Returns:
size of the blob

Get a pointer to the data of the blob. The management of the returned memory block still belongs to the blob object.

Parameters:
Returns:
pointer to the data of the blob

Get a pointer to the data of the blob. The management of the returned memory block still belongs to the blob object.

Returns:
pointer to the data of the blob

Set the data of the blob. The data is copied from the memory block passed in as a parameter, into the internal buffer hold by the blob. The blob owns the copied in memory.

Parameters:

Set the data of the blob by taking over the management of the memory block passed in as a parameter. No copies are performed.

Parameters:

Get a pointer to the data of the blob, and at the same time disassociate the blob from its data. The management of the returned memory block now does not belong to this blob anymore.

Precondition:
ownsData() == true;
Parameters:
Returns:
pointer to the data of the blob
Exceptions:

Swap with another blob

Parameters:

Does this blob own the data, or it is holding memory owned by someone else?

Returns:
true if the blob owns the data

Use external data in the blob. No copies will be done. This memory will NOT be freed when the blob is destroyed. It is the responsibility of the developer to ensure that the memory remains allocated for the duration of the blob object.

Parameters:
template<class BufferType >

Serialize (binary)

Parameters:
template<class BufferType >

Deserialize (binary)

Parameters:

Serialize (character)

Parameters:

Deserialize (character)

Parameters:

Get hash code

Returns:
hash code

Get the size in bytes when serialized

Returns:
size in bytes when serialized

The documentation for this class was generated from the following file: