Project Alice
Loading...
Searching...
No Matches
mem.h File Reference
#include <stddef.h>
#include "compiler.h"
#include "debug.h"
#include "zstd_deps.h"
#include <limits.h>
Include dependency graph for mem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef unsigned char BYTE
 
typedef unsigned char U8
 
typedef signed char S8
 
typedef unsigned short U16
 
typedef signed short S16
 
typedef unsigned int U32
 
typedef signed int S32
 
typedef unsigned long long U64
 
typedef signed long long S64
 

Functions

MEM_STATIC unsigned MEM_32bits (void)
 
MEM_STATIC unsigned MEM_64bits (void)
 
MEM_STATIC unsigned MEM_isLittleEndian (void)
 
MEM_STATIC U16 MEM_read16 (const void *memPtr)
 
MEM_STATIC U32 MEM_read32 (const void *memPtr)
 
MEM_STATIC U64 MEM_read64 (const void *memPtr)
 
MEM_STATIC size_t MEM_readST (const void *memPtr)
 
MEM_STATIC void MEM_write16 (void *memPtr, U16 value)
 
MEM_STATIC void MEM_write32 (void *memPtr, U32 value)
 
MEM_STATIC void MEM_write64 (void *memPtr, U64 value)
 
MEM_STATIC U16 MEM_readLE16 (const void *memPtr)
 
MEM_STATIC U32 MEM_readLE24 (const void *memPtr)
 
MEM_STATIC U32 MEM_readLE32 (const void *memPtr)
 
MEM_STATIC U64 MEM_readLE64 (const void *memPtr)
 
MEM_STATIC size_t MEM_readLEST (const void *memPtr)
 
MEM_STATIC void MEM_writeLE16 (void *memPtr, U16 val)
 
MEM_STATIC void MEM_writeLE24 (void *memPtr, U32 val)
 
MEM_STATIC void MEM_writeLE32 (void *memPtr, U32 val32)
 
MEM_STATIC void MEM_writeLE64 (void *memPtr, U64 val64)
 
MEM_STATIC void MEM_writeLEST (void *memPtr, size_t val)
 
MEM_STATIC U32 MEM_readBE32 (const void *memPtr)
 
MEM_STATIC U64 MEM_readBE64 (const void *memPtr)
 
MEM_STATIC size_t MEM_readBEST (const void *memPtr)
 
MEM_STATIC void MEM_writeBE32 (void *memPtr, U32 val32)
 
MEM_STATIC void MEM_writeBE64 (void *memPtr, U64 val64)
 
MEM_STATIC void MEM_writeBEST (void *memPtr, size_t val)
 
MEM_STATIC U32 MEM_swap32 (U32 in)
 
MEM_STATIC U64 MEM_swap64 (U64 in)
 
MEM_STATIC size_t MEM_swapST (size_t in)
 
MEM_STATIC U32 MEM_swap32_fallback (U32 in)
 
MEM_STATIC U64 MEM_swap64_fallback (U64 in)
 
MEM_STATIC void MEM_check (void)
 

Typedef Documentation

◆ BYTE

typedef unsigned char BYTE

Definition at line 58 of file mem.h.

◆ S16

typedef signed short S16

Definition at line 65 of file mem.h.

◆ S32

typedef signed int S32

Definition at line 70 of file mem.h.

◆ S64

typedef signed long long S64

Definition at line 74 of file mem.h.

◆ S8

typedef signed char S8

Definition at line 60 of file mem.h.

◆ U16

typedef unsigned short U16

Definition at line 64 of file mem.h.

◆ U32

typedef unsigned int U32

Definition at line 69 of file mem.h.

◆ U64

typedef unsigned long long U64

Definition at line 73 of file mem.h.

◆ U8

typedef unsigned char U8

Definition at line 59 of file mem.h.

Function Documentation

◆ MEM_32bits()

MEM_STATIC unsigned MEM_32bits ( void  )

Definition at line 140 of file mem.h.

Here is the caller graph for this function:

◆ MEM_64bits()

MEM_STATIC unsigned MEM_64bits ( void  )

Definition at line 141 of file mem.h.

Here is the caller graph for this function:

◆ MEM_check()

MEM_STATIC void MEM_check ( void  )

Definition at line 419 of file mem.h.

◆ MEM_isLittleEndian()

MEM_STATIC unsigned MEM_isLittleEndian ( void  )

Definition at line 143 of file mem.h.

Here is the caller graph for this function:

◆ MEM_read16()

MEM_STATIC U16 MEM_read16 ( const void *  memPtr)

Definition at line 197 of file mem.h.

Here is the caller graph for this function:

◆ MEM_read32()

MEM_STATIC U32 MEM_read32 ( const void *  memPtr)

Definition at line 202 of file mem.h.

Here is the caller graph for this function:

◆ MEM_read64()

MEM_STATIC U64 MEM_read64 ( const void *  memPtr)

Definition at line 207 of file mem.h.

Here is the caller graph for this function:

◆ MEM_readBE32()

MEM_STATIC U32 MEM_readBE32 ( const void *  memPtr)

Definition at line 370 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readBE64()

MEM_STATIC U64 MEM_readBE64 ( const void *  memPtr)

Definition at line 386 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readBEST()

MEM_STATIC size_t MEM_readBEST ( const void *  memPtr)

Definition at line 402 of file mem.h.

Here is the call graph for this function:

◆ MEM_readLE16()

MEM_STATIC U16 MEM_readLE16 ( const void *  memPtr)

Definition at line 288 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readLE24()

MEM_STATIC U32 MEM_readLE24 ( const void *  memPtr)

Definition at line 309 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readLE32()

MEM_STATIC U32 MEM_readLE32 ( const void *  memPtr)

Definition at line 320 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readLE64()

MEM_STATIC U64 MEM_readLE64 ( const void *  memPtr)

Definition at line 336 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readLEST()

MEM_STATIC size_t MEM_readLEST ( const void *  memPtr)

Definition at line 352 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_readST()

MEM_STATIC size_t MEM_readST ( const void *  memPtr)

Definition at line 212 of file mem.h.

Here is the caller graph for this function:

◆ MEM_swap32()

MEM_STATIC U32 MEM_swap32 ( U32  in)

Definition at line 242 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_swap32_fallback()

MEM_STATIC U32 MEM_swap32_fallback ( U32  in)

Definition at line 234 of file mem.h.

Here is the caller graph for this function:

◆ MEM_swap64()

MEM_STATIC U64 MEM_swap64 ( U64  in)

Definition at line 266 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_swap64_fallback()

MEM_STATIC U64 MEM_swap64_fallback ( U64  in)

Definition at line 254 of file mem.h.

Here is the caller graph for this function:

◆ MEM_swapST()

MEM_STATIC size_t MEM_swapST ( size_t  in)

Definition at line 278 of file mem.h.

Here is the call graph for this function:

◆ MEM_write16()

MEM_STATIC void MEM_write16 ( void *  memPtr,
U16  value 
)

Definition at line 217 of file mem.h.

Here is the caller graph for this function:

◆ MEM_write32()

MEM_STATIC void MEM_write32 ( void *  memPtr,
U32  value 
)

Definition at line 222 of file mem.h.

Here is the caller graph for this function:

◆ MEM_write64()

MEM_STATIC void MEM_write64 ( void *  memPtr,
U64  value 
)

Definition at line 227 of file mem.h.

Here is the caller graph for this function:

◆ MEM_writeBE32()

MEM_STATIC void MEM_writeBE32 ( void *  memPtr,
U32  val32 
)

Definition at line 378 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_writeBE64()

MEM_STATIC void MEM_writeBE64 ( void *  memPtr,
U64  val64 
)

Definition at line 394 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_writeBEST()

MEM_STATIC void MEM_writeBEST ( void *  memPtr,
size_t  val 
)

Definition at line 410 of file mem.h.

Here is the call graph for this function:

◆ MEM_writeLE16()

MEM_STATIC void MEM_writeLE16 ( void *  memPtr,
U16  val 
)

Definition at line 298 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_writeLE24()

MEM_STATIC void MEM_writeLE24 ( void *  memPtr,
U32  val 
)

Definition at line 314 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_writeLE32()

MEM_STATIC void MEM_writeLE32 ( void *  memPtr,
U32  val32 
)

Definition at line 328 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_writeLE64()

MEM_STATIC void MEM_writeLE64 ( void *  memPtr,
U64  val64 
)

Definition at line 344 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MEM_writeLEST()

MEM_STATIC void MEM_writeLEST ( void *  memPtr,
size_t  val 
)

Definition at line 360 of file mem.h.

Here is the call graph for this function:
Here is the caller graph for this function: