[#BloombergLP-bsls-PlatformUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::PlatformUtil :relfileprefix: ../../ :mrdocs: Provide a namespace for a suite of `typedef`s and pure procedures that encapsulate, platform‐dependent types and APIs. == Synopsis Declared in `<bsls_platformutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct PlatformUtil; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/PlatformUtil/Int64.adoc[`Int64`] | 64‐bit signed integer type for all supported platforms. | xref:BloombergLP/bsls/PlatformUtil/IntPtr.adoc[`IntPtr`] | The aliases `UintPtr` and `IntPtr` are guaranteed to have the same size as pointers. | xref:BloombergLP/bsls/PlatformUtil/MaxAlign.adoc[`MaxAlign`] | The alias `MaxAlign` refers to a type that is maximally‐aligned on the current platform. | xref:BloombergLP/bsls/PlatformUtil/Uint64.adoc[`Uint64`] | The aliases `Int64` and `Uint64` stand for whatever type `Types` implements for the appropriate supported platforms. | xref:BloombergLP/bsls/PlatformUtil/UintPtr.adoc[`UintPtr`] | Unsigned integer type guaranteed to have the same size as pointers. | xref:BloombergLP/bsls/PlatformUtil/size_type.adoc[`size_type`] | Preferred type for denoting a number of elements. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsls/PlatformUtil/isBigEndian.adoc[`isBigEndian`] | Return `true` if this platform is big‐endian. | xref:BloombergLP/bsls/PlatformUtil/isLittleEndian.adoc[`isLittleEndian`] | Return `true` if this platform is little‐endian. | xref:BloombergLP/bsls/PlatformUtil/roundUpToMaximalAlignment.adoc[`roundUpToMaximalAlignment`] | Return the specified `size` (in bytes) rounded up to the smallest integral multiple of the maximum alignment. The behavior is undefined unless `0 <= size`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#