Mac Developer Library

Developer

OSEndianTypes.h Reference

Options
Deployment Target:

On This Page

OSEndianTypes.h Reference

C++ inline types for byte-swapping.

The OSEndianTypes consist of a number of types that are used very similarly to the traditional MacOS C scalar integers types, for example, UInt32 and SInt32.

Included Headers

  • <libkern/OSTypes.h>

  • <libkern/OSByteOrder.h>

Data Types

See the Overview section above for header-level documentation.

  • A Big-endian signed integer scalar size 16 - SInt16

    Declaration

    typedef class BigSInt16 BigSInt16;

    Import Statement

  • A Big-endian signed integer scalar size 32 - SInt32

    Declaration

    typedef class BigSInt32 BigSInt32;

    Import Statement

  • A Big-endian signed integer scalar size 64 - SInt64

    Declaration

    typedef class BigSInt64 BigSInt64;

    Import Statement

  • A Big-endian unsigned integer scalar size 16 - UInt16

    Declaration

    typedef class BigUInt16 BigUInt16;

    Import Statement

  • A Big-endian unsigned integer scalar size 32 - UInt32

    Declaration

    typedef class BigUInt32 BigUInt32;

    Import Statement

  • A Big-endian unsigned integer scalar size 64 - UInt64

    Declaration

    typedef class BigUInt64 BigUInt64;

    Import Statement

  • A Little-endian signed integer scalar size 16 - SInt16

    Declaration

    typedef class LittleSInt16 LittleSInt16;

    Import Statement

  • A Little-endian signed integer scalar size 32 - SInt32

    Declaration

    typedef class LittleSInt32 LittleSInt32;

    Import Statement

  • A Little-endian signed integer scalar size 64 - SInt64

    Declaration

    typedef class LittleSInt64 LittleSInt64;

    Import Statement

  • A Little-endian unsigned integer scalar size 16 - UInt16

    Declaration

    typedef class LittleUInt16 LittleUInt16;

    Import Statement

  • A Little-endian unsigned integer scalar size 32 - UInt32

    Declaration

    typedef class LittleUInt32 LittleUInt32;

    Import Statement

  • A Little-endian unsigned integer scalar size 64 - UInt64

    Declaration

    typedef class LittleUInt64 LittleUInt64;

    Import Statement