#include <blpapi_types.h>
List of all members.
Detailed Description
Bytes is used as a byte array representation.
It contains the pointer and size of a contiguous block of memory - byte array. Data is not copied into Bytes, i.e. it needs to live longer than the corresponding Bytes object.
See Component blpapi_types
Member Typedef Documentation
Constructor & Destructor Documentation
Create an empty Bytes object.
Create a Bytes object pointing to a contiguous block of memory starting from the specified ptr and having the specified length.
Member Function Documentation
Replace the content of the Bytes object to make it pointing to a contiguous block of memory starting from the specified ptr and having the specified length.
Return an iterator to the first element of the byte array. If the byte array is empty, the returned iterator will be equal to end().
Return an iterator to the element following the last element of the byte array. This element acts as a placeholder; attempting to access it results in undefined behavior.
Return a reverse iterator to the first element of the reversed byte array. It corresponds to the last element of the non-reversed byte array. If the byte array is empty, the returned iterator is equal to rend().
Return a reverse iterator to the element following the last element of the reversed byte array. It corresponds to the element preceding the first element of the non-reversed byte array. This element acts as a placeholder, attempting to access it results in undefined behavior.
Return a reference to the first element in the byte array. Calling front on an empty byte array results in undefined behavior.
Return a reference to the last element in the byte array. Calling back on an empty byte array results in undefined behavior.
Return a reference to the specified index-th element of the byte array. The behavior is undefined if index is out of range (i.e., if it is greater than or equal to size()).
| pointer blpapi::Bytes::data |
( |
|
) |
const |
Return a pointer to the beginning of the byte array.
Return the number of elements in the byte array.
| bool blpapi::Bytes::empty |
( |
|
) |
const |
Check if the byte array is empty.
Obtain a byte array that is a view over the first specified count elements of this byte array. The behavior is undefined if count > size().
Obtain a byte array that is a view over the last specified count elements of this byte array. The behavior is undefined if count > size().
Obtain a byte array that is a view over the specified count elements of this byte array starting at the specified offset. If count == -1, the number of elements in the subspan is size() - offset (i.e., it ends at the end of *this). The behavior is undefined if either offset or count is out of range. This happens if offset > size(), or count != -1 and count > size() - offset.
template<typename BYTE_CONTAINER , typename std::enable_if< IsByteContainer< BYTE_CONTAINER, iterator >::value, bool >::type = true>
| blpapi::Bytes::operator BYTE_CONTAINER |
( |
|
) |
const |
Convert the byte array to a BYTE_CONTAINER. BYTE_CONTAINER is any type that can be constructed with two iterators to the beginning and the end of the byte array, i.e. BYTE_CONTAINER(begin(), end()). Also, BYTE_CONTAINER must provide a type value_type such that sizeof(BYTE_CONTAINER::value_type) == 1.
The documentation for this class was generated from the following file: