Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bsls::PlatformUtil Struct Reference

#include <bsls_platformutil.h>

List of all members.

Public Types

typedef Types::size_type size_type
typedef Types::UintPtr UintPtr
typedef Types::IntPtr IntPtr
typedef Types::Int64 Int64
typedef Types::Uint64 Uint64
typedef
AlignmentUtil::MaxAlignedType 
MaxAlign

Static Public Member Functions

static bool isBigEndian ()
static bool isLittleEndian ()
static int roundUpToMaximalAlignment (int size)

Detailed Description

Provide a namespace for a suite of typedefs and pure procedures that encapsulate, platform-dependent types and APIs.

See Component bsls_platformutil


Member Typedef Documentation


Member Function Documentation

static bool bsls::PlatformUtil::isBigEndian (  )  [static]

Return true if this platform is "big-endian", and false otherwise. Note that "big-endian" (i.e., the most significant byte of data at the lowest byte address) is consistent with network byte order.

DEPRECATED: Use preprocessor macro BSLS_PLATFORM_IS_BIG_ENDIAN defined in bsls_platform instead.

static bool bsls::PlatformUtil::isLittleEndian (  )  [static]

Return true if this platform is "little-endian", and false otherwise. Note that "little-endian" (i.e., the least significant byte of data at the lowest byte address) is inconsistent with network byte order.

DEPRECATED: Use preprocessor macro BSLS_PLATFORMUTIL_IS_BIG_ENDIAN defined in bsls_platform instead.

static int bsls::PlatformUtil::roundUpToMaximalAlignment ( int  size  )  [static]

Return the specified size (in bytes) rounded up to the smallest integral multiple of the maximum alignment. The behavior is undefined unless 0 <= size.

DEPRECATED: Use AlignmentUtil::roundUpToMaximalAlignment instead.


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