Namespace for unsigned‐integer packing types and BDEX helpers.
Synopsis
Declared in <bdlc_packedintarray.h>
struct PackedIntArrayImp_Unsigned;
Description
This struct provides a namespace for types and methods used to implement a space‐efficient value‐semantic array class representing a sequence of TYPE elements; TYPE must be convertible to either a bsl::uint64_t. Specifically, it defines the types used to store the array's data, methods needed to externalize and unexternalize the array, and a method to determine the storage size to use for a given value.
Type Aliases
Name |
Description |
Storage type for eight‐byte unsigned packed elements. |
|
Storage type for four‐byte unsigned packed elements. |
|
Storage type for one‐byte unsigned packed elements. |
|
Storage type for two‐byte unsigned packed elements. |
Static Member Functions
Name |
Description |
Read a 16‐bit unsigned integer from |
|
Read a 32‐bit unsigned integer from |
|
Read a 64‐bit unsigned integer from |
|
Read an 8‐bit unsigned integer from |
|
Write |
|
Write a 32‐bit unsigned integer |
|
Write a 64‐bit unsigned integer |
|
Write an 8‐bit unsigned integer |
|
Return the required number of bytes to store the specified |
Created with MrDocs