htslib.hts_endian

@file hts_endian.h Byte swapping and unaligned access functions.

Members

Aliases

uint16_u
alias uint16_u = ushort
Undocumented in source.
uint16_u
alias uint16_u = ushort
Undocumented in source.
uint32_u
alias uint32_u = uint
Undocumented in source.
uint32_u
alias uint32_u = uint
Undocumented in source.
uint64_u
alias uint64_u = c_ulong
Undocumented in source.
uint64_u
alias uint64_u = c_ulong
Undocumented in source.

Functions

double_to_le
void double_to_le(double val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

float_to_le
void float_to_le(float val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

i16_to_le
void i16_to_le(short val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

i32_to_le
void i32_to_le(int val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

i64_to_le
void i64_to_le(long val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

le_to_double
double le_to_double(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 64 bit floating point value The input is interpreted as an IEEE 754 format double in little-endian byte order.

le_to_float
float le_to_float(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 32 bit floating point value The input is interpreted as an IEEE 754 format float in little-endian byte order.

le_to_i16
short le_to_i16(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 16 bit signed integer The input data is interpreted as 2's complement representation in little-endian byte order.

le_to_i32
int le_to_i32(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 32 bit signed integer The input data is interpreted as 2's complement representation in little-endian byte order.

le_to_i64
long le_to_i64(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 64 bit signed integer The input data is interpreted as 2's complement representation in little-endian byte order.

le_to_i8
byte le_to_i8(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 8 bit signed integer The input data is interpreted as 2's complement representation.

le_to_u16
ushort le_to_u16(const(ubyte)* buf)

@param buf Pointer to source byte, may be unaligned @return A 16 bit unsigned integer The input is read in little-endian byte order.

le_to_u32
uint le_to_u32(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 32 bit unsigned integer The input is read in little-endian byte order.

le_to_u64
ulong le_to_u64(const(ubyte)* buf)

@param buf Pointer to source byte array, may be unaligned @return A 64 bit unsigned integer The input is read in little-endian byte order.

u16_to_le
void u16_to_le(ushort val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

u32_to_le
void u32_to_le(uint val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

u64_to_le
void u64_to_le(ulong val, ubyte* buf)

@param val The value to store @param buf Where to store it (may be unaligned)

Manifest constants

HTS_ALLOW_UNALIGNED
enum HTS_ALLOW_UNALIGNED;
Undocumented in source.
HTS_ALLOW_UNALIGNED
enum HTS_ALLOW_UNALIGNED;
Undocumented in source.
HTS_BIG_ENDIAN
enum HTS_BIG_ENDIAN;
Undocumented in source.
HTS_BIG_ENDIAN
enum HTS_BIG_ENDIAN;
Undocumented in source.
HTS_BIG_ENDIAN
enum HTS_BIG_ENDIAN;
Undocumented in source.
HTS_LITTLE_ENDIAN
enum HTS_LITTLE_ENDIAN;
Undocumented in source.
HTS_LITTLE_ENDIAN
enum HTS_LITTLE_ENDIAN;
Undocumented in source.
HTS_LITTLE_ENDIAN
enum HTS_LITTLE_ENDIAN;
Undocumented in source.
HTS_x86
enum HTS_x86;
Undocumented in source.
HTS_x86
enum HTS_x86;
Undocumented in source.
HTS_x86
enum HTS_x86;
Undocumented in source.

Meta