PostGIS  2.2.8dev-r@@SVN_REVISION@@
rt_serialize.h File Reference
#include "librtcore.h"
Include dependency graph for rt_serialize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BANDTYPE_FLAGS_MASK   0xF0
 
#define BANDTYPE_PIXTYPE_MASK   0x0F
 
#define BANDTYPE_FLAG_OFFDB   (1<<7)
 
#define BANDTYPE_FLAG_HASNODATA   (1<<6)
 
#define BANDTYPE_FLAG_ISNODATA   (1<<5)
 
#define BANDTYPE_FLAG_RESERVED3   (1<<4)
 
#define BANDTYPE_PIXTYPE(x)   ((x)&BANDTYPE_PIXTYPE_MASK)
 
#define BANDTYPE_IS_OFFDB(x)   ((x)&BANDTYPE_FLAG_OFFDB)
 
#define BANDTYPE_HAS_NODATA(x)   ((x)&BANDTYPE_FLAG_HASNODATA)
 
#define BANDTYPE_IS_NODATA(x)   ((x)&BANDTYPE_FLAG_ISNODATA)
 
#define CHECK_BINPTR_POSITION(ptr, end, size, pos)   ((void)0);
 

Functions

void swap_char (uint8_t *a, uint8_t *b)
 
void flip_endian_16 (uint8_t *d)
 
void flip_endian_32 (uint8_t *d)
 
void flip_endian_64 (uint8_t *d)
 
uint8_t isMachineLittleEndian (void)
 
uint8_t read_uint8 (const uint8_t **from)
 
int8_t read_int8 (const uint8_t **from)
 
uint16_t read_uint16 (const uint8_t **from, uint8_t littleEndian)
 
void write_uint16 (uint8_t **to, uint8_t littleEndian, uint16_t v)
 
int16_t read_int16 (const uint8_t **from, uint8_t littleEndian)
 
uint32_t read_uint32 (const uint8_t **from, uint8_t littleEndian)
 
int32_t read_int32 (const uint8_t **from, uint8_t littleEndian)
 
float read_float32 (const uint8_t **from, uint8_t littleEndian)
 
double read_float64 (const uint8_t **from, uint8_t littleEndian)