PostGIS  2.5.7dev-r@@SVN_REVISION@@
rt_serialize.c File Reference
#include "librtcore.h"
#include "librtcore_internal.h"
#include "rt_serialize.h"
Include dependency graph for rt_serialize.c:

Go to the source code of this file.

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)
 
static uint32_t rt_raster_serialized_size (rt_raster raster)
 
void * rt_raster_serialize (rt_raster raster)
 Return this raster in serialized form. More...
 
rt_raster rt_raster_deserialize (void *serialized, int header_only)
 Return a raster from a serialized form. More...