EmaBuffer represents a general use binary buffer. More...
Public Member Functions | |
Constructor | |
EmaBuffer () | |
More... | |
EmaBuffer (const char *buf, UInt32 length) | |
More... | |
EmaBuffer (const EmaBuffer &buf) | |
More... | |
Destructor | |
virtual | ~EmaBuffer () |
More... | |
Operations | |
EmaBuffer & | clear () |
More... | |
EmaBuffer & | operator= (const EmaBuffer &buf) |
More... | |
EmaBuffer & | setFrom (const char *buf, UInt32 length) |
More... | |
EmaBuffer & | append (const EmaBuffer &buf) |
More... | |
EmaBuffer & | append (char c) |
More... | |
EmaBuffer & | append (const char *buf, UInt32 length) |
More... | |
EmaBuffer & | operator+= (const EmaBuffer &buf) |
More... | |
EmaBuffer & | operator+= (char) |
More... | |
char & | operator[] (UInt32 index) |
More... | |
Accessors | |
char * | _pBuffer |
UInt32 | _length |
UInt32 | _capacity |
CastingOperatorContext * | _pCastingOperatorContext |
const char * | c_buf () const |
More... | |
UInt32 | length () const |
More... | |
const char * | asRawHexString () const |
More... | |
operator const char * () const | |
More... | |
bool | operator== (const EmaBuffer &buf) const |
More... | |
char | operator[] (UInt32 index) const |
More... | |
void | markDirty () const |
EmaBuffer is a buffer of 8 bit long characters where each character is represented by char or byte.
Definition at line 32 of file EmaBuffer.h.
refinitiv::ema::access::EmaBuffer::EmaBuffer | ( | ) |
Constructs EmaBuffer.
refinitiv::ema::access::EmaBuffer::EmaBuffer | ( | const char * | buf, |
UInt32 | length | ||
) |
Assignment constructor
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | pointer to the memory containing copied in buffer |
[in] | length | specifies number of characters to copy |
refinitiv::ema::access::EmaBuffer::EmaBuffer | ( | const EmaBuffer & | buf | ) |
Copy constructor.
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | copied in EmaBuffer object |
|
virtual |
Destructor.
EmaBuffer& refinitiv::ema::access::EmaBuffer::append | ( | char | c | ) |
method to append this object with the passed in char
OmmMemoryExhaustionException | if application runs out of memory |
[in] | c | character to append to this object |
method to append this object with the passed in char buffer
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | pointer to the memory containing appended buffer |
[in] | length | specifies number of characters to append |
method to append this object with the passed in EmaBuffer object
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | EmaBuffer to append to this object |
const char* refinitiv::ema::access::EmaBuffer::asRawHexString | ( | ) | const |
Returns an alphanumeric null-terminated hexadecimal string representation.
const char* refinitiv::ema::access::EmaBuffer::c_buf | ( | ) | const |
Returns pointer to the internal storage memory
EmaBuffer& refinitiv::ema::access::EmaBuffer::clear | ( | ) |
Clears contained buffer.
UInt32 refinitiv::ema::access::EmaBuffer::length | ( | ) | const |
Returns length of the internal storage memory.
refinitiv::ema::access::EmaBuffer::operator const char * | ( | ) | const |
Returns an alphanumeric null-terminated hexadecimal string representation via conversion to operator const char*.
EmaBuffer& refinitiv::ema::access::EmaBuffer::operator+= | ( | char | ) |
method to append this object with the passed in char
OmmMemoryExhaustionException | if application runs out of memory |
[in] | c | character to append to this object |
method to append this object with the passed in EmaBuffer object
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | EmaBuffer to append to this object |
Assignment operator.
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | copied in EmaBuffer object |
bool refinitiv::ema::access::EmaBuffer::operator== | ( | const EmaBuffer & | buf | ) | const |
Compare operator.
[in] | buf | compared EmaBuffer object |
char& refinitiv::ema::access::EmaBuffer::operator[] | ( | UInt32 | index | ) |
read write index operator
OmmOutOfRangeException | if passed in index is greater than the length of the contained buffer |
[in] | index | specifies position to read or write |
char refinitiv::ema::access::EmaBuffer::operator[] | ( | UInt32 | index | ) | const |
read only index operator
OmmOutOfRangeException | if passed in index is greater than the length of the contained buffer |
[in] | index | specifies position to read |
Method to set Buffer.
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | pointer to the memory are containing copied in buffer |
[in] | length | specifies number of characters to copy |
![]() |
![]() |
|