EmaBufferU16 represents general use binary buffer. More...
Public Member Functions | |
Constructor | |
EmaBufferU16 () | |
More... | |
EmaBufferU16 (const UInt16 *buf, UInt32 length) | |
More... | |
EmaBufferU16 (const EmaBufferU16 &buf) | |
More... | |
Destructor | |
virtual | ~EmaBufferU16 () |
More... | |
Operations | |
EmaBufferU16 & | clear () |
More... | |
EmaBufferU16 & | operator= (const EmaBufferU16 &buf) |
More... | |
EmaBufferU16 & | setFrom (const UInt16 *buf, UInt32 length) |
More... | |
EmaBufferU16 & | append (const EmaBufferU16 &buf) |
More... | |
EmaBufferU16 & | append (UInt16 c) |
More... | |
EmaBufferU16 & | append (const UInt16 *buf, UInt32 length) |
More... | |
EmaBufferU16 & | operator+= (const EmaBufferU16 &buf) |
More... | |
EmaBufferU16 & | operator+= (UInt16) |
More... | |
UInt16 & | operator[] (UInt32 index) |
More... | |
Accessors | |
UInt16 * | _pBuffer |
UInt32 | _length |
UInt32 | _capacity |
const UInt16 * | u16_buf () const |
More... | |
UInt32 | length () const |
More... | |
bool | operator== (const EmaBufferU16 &buf) const |
More... | |
UInt16 | operator[] (UInt32 index) const |
More... | |
EmaBufferU16 is a buffer of 16 bit long characters where each character is represented by UInt16. EmaBufferU16 is used to contain UTF16 data.
Definition at line 31 of file EmaBufferU16.h.
refinitiv::ema::access::EmaBufferU16::EmaBufferU16 | ( | ) |
Constructs EmaBufferU16
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::EmaBufferU16::EmaBufferU16 | ( | const EmaBufferU16 & | buf | ) |
Copy constructor.
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | copied in EmaBufferU16 object |
|
virtual |
Destructor.
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::append | ( | const EmaBufferU16 & | buf | ) |
method to append this object with the passed in EmaBufferU16 object
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | EmaBufferU16 to append to this object |
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::append | ( | const UInt16 * | buf, |
UInt32 | length | ||
) |
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 |
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::append | ( | UInt16 | c | ) |
method to append this object with the passed in 16 byte long character
OmmMemoryExhaustionException | if application runs out of memory |
[in] | c | character to append to this object |
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::clear | ( | ) |
Clears contained buffer.
UInt32 refinitiv::ema::access::EmaBufferU16::length | ( | ) | const |
Returns length of the internal storage memory.
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::operator+= | ( | const EmaBufferU16 & | buf | ) |
method to append this object with the passed in EmaBufferU16 object
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | EmaBuffer to append to this object |
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::operator+= | ( | UInt16 | ) |
method to append this object with the passed in 16 byte long char
OmmMemoryExhaustionException | if application runs out of memory |
[in] | c | character to append to this object |
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::operator= | ( | const EmaBufferU16 & | buf | ) |
Assignment operator.
OmmMemoryExhaustionException | if application runs out of memory |
[in] | buf | copied in EmaBufferU16 object |
bool refinitiv::ema::access::EmaBufferU16::operator== | ( | const EmaBufferU16 & | buf | ) | const |
Compare operator.
[in] | buf | compared EmaBufferU16 object |
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 |
read only index operator
OmmOutOfRangeException | if passed in index is greater than the length of the contained buffer |
[in] | index | specifies position to read |
EmaBufferU16& refinitiv::ema::access::EmaBufferU16::setFrom | ( | const UInt16 * | buf, |
UInt32 | length | ||
) |
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 |
const UInt16* refinitiv::ema::access::EmaBufferU16::u16_buf | ( | ) | const |
Returns pointer to the internal storage memory
![]() |
![]() |
|