Namespace for signed‐integer packing types and BDEX helpers.

Synopsis

Declared in <bdlc_packedintarray.h>

struct PackedIntArrayImp_Signed;

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::int64_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

EightByteStorageType

Storage type for eight‐byte signed packed elements.

FourByteStorageType

Storage type for four‐byte signed packed elements.

OneByteStorageType

Storage type for one‐byte signed packed elements.

TwoByteStorageType

Storage type for two‐byte signed packed elements.

Static Member Functions

Name

Description

bdexGet16

Read a 16‐bit signed integer from stream into variable.

bdexGet32

Read a 32‐bit signed integer from stream into variable.

bdexGet64

Read a 64‐bit signed integer from stream into variable.

bdexGet8

Read an 8‐bit signed integer from stream into variable.

bdexPut16

Write a 16‐bit signed integer value to stream.

bdexPut32

Write a 32‐bit signed integer value to stream.

bdexPut64

Write a 64‐bit signed integer value to stream.

bdexPut8

Write an 8‐bit signed integer value to stream.

requiredBytesPerElement

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

Created with MrDocs