BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::PackedIntArrayImp_Unsigned Struct Reference

#include <bdlc_packedintarray.h>

Public Types

typedef bsl::uint8_t OneByteStorageType
 
typedef bsl::uint16_t TwoByteStorageType
 
typedef bsl::uint32_t FourByteStorageType
 
typedef bsl::uint64_t EightByteStorageType
 

Static Public Member Functions

template<class STREAM >
static void bdexGet8 (STREAM &stream, bsl::uint8_t &variable)
 
template<class STREAM >
static void bdexGet16 (STREAM &stream, bsl::uint16_t &variable)
 
template<class STREAM >
static void bdexGet32 (STREAM &stream, bsl::uint32_t &variable)
 
template<class STREAM >
static void bdexGet64 (STREAM &stream, bsl::uint64_t &variable)
 
template<class STREAM >
static void bdexPut8 (STREAM &stream, bsl::uint8_t value)
 
template<class STREAM >
static void bdexPut16 (STREAM &stream, bsl::uint16_t value)
 
template<class STREAM >
static void bdexPut32 (STREAM &stream, bsl::uint32_t value)
 
template<class STREAM >
static void bdexPut64 (STREAM &stream, bsl::uint64_t value)
 
static int requiredBytesPerElement (EightByteStorageType value)
 Return the required number of bytes to store the specified value.
 

Detailed 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.

Member Typedef Documentation

◆ EightByteStorageType

◆ FourByteStorageType

◆ OneByteStorageType

◆ TwoByteStorageType

Member Function Documentation

◆ bdexGet16()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexGet16 ( STREAM &  stream,
bsl::uint16_t &  variable 
)
static

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

◆ bdexGet32()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexGet32 ( STREAM &  stream,
bsl::uint32_t &  variable 
)
static

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

◆ bdexGet64()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexGet64 ( STREAM &  stream,
bsl::uint64_t &  variable 
)
static

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

◆ bdexGet8()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexGet8 ( STREAM &  stream,
bsl::uint8_t &  variable 
)
static

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

◆ bdexPut16()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexPut16 ( STREAM &  stream,
bsl::uint16_t  value 
)
static

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

◆ bdexPut32()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexPut32 ( STREAM &  stream,
bsl::uint32_t  value 
)
static

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

◆ bdexPut64()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexPut64 ( STREAM &  stream,
bsl::uint64_t  value 
)
static

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

◆ bdexPut8()

template<class STREAM >
void bdlc::PackedIntArrayImp_Unsigned::bdexPut8 ( STREAM &  stream,
bsl::uint8_t  value 
)
static

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

◆ requiredBytesPerElement()

static int bdlc::PackedIntArrayImp_Unsigned::requiredBytesPerElement ( EightByteStorageType  value)
static

The documentation for this struct was generated from the following file: