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.

Synopsis

Declared in <bdlc_packedintarray.h>

struct PackedIntArrayImp_Unsigned;

Type Aliases

Name

Description

EightByteStorageType

Storage type for eight‐byte unsigned packed elements.

FourByteStorageType

Storage type for four‐byte unsigned packed elements.

OneByteStorageType

Storage type for one‐byte unsigned packed elements.

TwoByteStorageType

Storage type for two‐byte unsigned packed elements.

Static Member Functions

Name

Description

bdexGet16

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

bdexGet32

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

bdexGet64

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

bdexGet8

Read from the specified stream the specified variable as per the requirements of the BDEX protocol.

bdexPut16

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

bdexPut32

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

bdexPut64

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

bdexPut8

Write to the specified stream the specified value as per the requirements of the BDEX protocol.

requiredBytesPerElement

Return the required number of bytes to store the specified value.

Created with MrDocs