2014-03-30 22:29:30 +02:00
|
|
|
#ifndef _FCEU_ENDIAN_H
|
|
|
|
|
#define _FCEU_ENDIAN_H
|
2014-03-30 22:15:17 +02:00
|
|
|
|
2014-03-30 22:29:30 +02:00
|
|
|
#include "fceu-memory.h"
|
2016-04-07 03:17:52 +02:00
|
|
|
#include "drivers/libretro/libretro-common/include/streams/memory_stream.h"
|
2015-08-06 13:15:34 +02:00
|
|
|
|
|
|
|
|
int write32le_mem(uint32 b, memstream_t *mem);
|
|
|
|
|
int read32le_mem(uint32 *Bufo, memstream_t *mem);
|
2014-03-30 22:15:17 +02:00
|
|
|
|
2014-03-30 22:29:30 +02:00
|
|
|
int write16le(uint16 b, FILE *fp);
|
|
|
|
|
int write32le(uint32 b, FILE *fp);
|
|
|
|
|
int read32le(uint32 *Bufo, FILE *fp);
|
2014-03-30 22:15:17 +02:00
|
|
|
void FlipByteOrder(uint8 *src, uint32 count);
|
|
|
|
|
|
|
|
|
|
void FCEU_en32lsb(uint8 *, uint32);
|
|
|
|
|
uint32 FCEU_de32lsb(uint8 *);
|
|
|
|
|
|
|
|
|
|
#endif
|