openshot-audio  0.1.6
Static Public Member Functions | List of all members
ByteOrder Class Reference

#include <juce_ByteOrder.h>

Static Public Member Functions

static uint16 swap (uint16 value) noexcept
 
static uint32 swap (uint32 value) noexcept
 
static uint64 swap (uint64 value) noexcept
 
static uint16 swapIfBigEndian (uint16 value) noexcept
 
static uint32 swapIfBigEndian (uint32 value) noexcept
 
static uint64 swapIfBigEndian (uint64 value) noexcept
 
static uint16 swapIfLittleEndian (uint16 value) noexcept
 
static uint32 swapIfLittleEndian (uint32 value) noexcept
 
static uint64 swapIfLittleEndian (uint64 value) noexcept
 
static uint32 littleEndianInt (const void *bytes) noexcept
 
static uint64 littleEndianInt64 (const void *bytes) noexcept
 
static uint16 littleEndianShort (const void *bytes) noexcept
 
static uint32 bigEndianInt (const void *bytes) noexcept
 
static uint64 bigEndianInt64 (const void *bytes) noexcept
 
static uint16 bigEndianShort (const void *bytes) noexcept
 
static int littleEndian24Bit (const void *bytes) noexcept
 
static int bigEndian24Bit (const void *bytes) noexcept
 
static void littleEndian24BitToChars (int value, void *destBytes) noexcept
 
static void bigEndian24BitToChars (int value, void *destBytes) noexcept
 
static bool isBigEndian () noexcept
 

Detailed Description

Contains static methods for converting the byte order between different endiannesses.

Member Function Documentation

int ByteOrder::bigEndian24Bit ( const void *  bytes)
inlinestaticnoexcept

Converts 3 big-endian bytes into a signed 24-bit value (which is sign-extended to 32 bits).

void ByteOrder::bigEndian24BitToChars ( int  value,
void *  destBytes 
)
inlinestaticnoexcept

Copies a 24-bit number to 3 big-endian bytes.

uint32 ByteOrder::bigEndianInt ( const void *  bytes)
inlinestaticnoexcept

Turns 4 bytes into a big-endian integer.

uint64 ByteOrder::bigEndianInt64 ( const void *  bytes)
inlinestaticnoexcept

Turns 8 bytes into a big-endian integer.

uint16 ByteOrder::bigEndianShort ( const void *  bytes)
inlinestaticnoexcept

Turns 2 bytes into a big-endian integer.

bool ByteOrder::isBigEndian ( )
inlinestaticnoexcept

Returns true if the current CPU is big-endian.

int ByteOrder::littleEndian24Bit ( const void *  bytes)
inlinestaticnoexcept

Converts 3 little-endian bytes into a signed 24-bit value (which is sign-extended to 32 bits).

void ByteOrder::littleEndian24BitToChars ( int  value,
void *  destBytes 
)
inlinestaticnoexcept

Copies a 24-bit number to 3 little-endian bytes.

uint32 ByteOrder::littleEndianInt ( const void *  bytes)
inlinestaticnoexcept

Turns 4 bytes into a little-endian integer.

uint64 ByteOrder::littleEndianInt64 ( const void *  bytes)
inlinestaticnoexcept

Turns 8 bytes into a little-endian integer.

uint16 ByteOrder::littleEndianShort ( const void *  bytes)
inlinestaticnoexcept

Turns 2 bytes into a little-endian integer.

uint16 ByteOrder::swap ( uint16  value)
inlinestaticnoexcept

Swaps the upper and lower bytes of a 16-bit integer.

uint32 ByteOrder::swap ( uint32  value)
inlinestaticnoexcept

Reverses the order of the 4 bytes in a 32-bit integer.

uint64 ByteOrder::swap ( uint64  value)
inlinestaticnoexcept

Reverses the order of the 8 bytes in a 64-bit integer.

uint16 ByteOrder::swapIfBigEndian ( uint16  value)
inlinestaticnoexcept

Swaps the byte order of a 16-bit int if the CPU is big-endian

uint32 ByteOrder::swapIfBigEndian ( uint32  value)
inlinestaticnoexcept

Swaps the byte order of a 32-bit int if the CPU is big-endian

uint64 ByteOrder::swapIfBigEndian ( uint64  value)
inlinestaticnoexcept

Swaps the byte order of a 64-bit int if the CPU is big-endian

uint16 ByteOrder::swapIfLittleEndian ( uint16  value)
inlinestaticnoexcept

Swaps the byte order of a 16-bit int if the CPU is little-endian

uint32 ByteOrder::swapIfLittleEndian ( uint32  value)
inlinestaticnoexcept

Swaps the byte order of a 32-bit int if the CPU is little-endian

uint64 ByteOrder::swapIfLittleEndian ( uint64  value)
inlinestaticnoexcept

Swaps the byte order of a 64-bit int if the CPU is little-endian


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