This class provides a type to represent a pointer to non-modifiable binary data and an integral size value.
Declared in <bdld_datumbinaryref.h>
class DatumBinaryRef;
| Name | Description |
|---|---|
SizeType | SizeType is an alias for an unsigned integral value, representing the length of the binary array. |
| Name | Description |
|---|---|
DatumBinaryRef [constructor] | Constructors |
data | Return the pointer to the non-modifiable binary data. |
print | Write the value of this object to the specified output stream in a human-readable format, and return a reference to the modifyable stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, and can change without notice. |
size | Return the size of the binary data. |
operator BloombergLP::bslmf::NestedTraitDeclaration<DatumBinaryRef, HasPrintMethod> | DatumBinaryRef is trivially copyable. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs have different values, and true otherwise. Two DatumBinaryRef objects have different values if they refer to arrays of bytes of different sizes or having a different content. |
operator< | Return true if the specified lhs compares smaller than the specified rhs, and false otherwise. A byte comparision is performed using memcpy. |
operator<= | Return true if the specified lhs compares smaller than or equal to the specified rhs, and false otherwise. A byte comparision is performed using memcpy. |
operator== | Return true if the specified lhs and rhs have the same value, and false otherwise. Two DatumBinaryRef objects have the same value if they refer to arrays of bytes of the same size and having the same content. |
operator> | Return true if the specified lhs compares larger than the specified rhs, and false otherwise. A byte comparision is performed using memcpy. |
operator>= | Return true if the specified lhs compares larger than or equal to the specified rhs, and false otherwise. A byte comparision is performed using memcpy. |