GEOS  3.9.1dev
Public Types | Static Public Member Functions | List of all members
geos::io::ByteOrderValues Class Reference

Methods to read and write primitive datatypes from/to byte sequences, allowing the byte order to be specified. More...

#include <ByteOrderValues.h>

Public Types

enum  EndianType { ENDIAN_BIG = 0, ENDIAN_LITTLE = 1 }
 

Static Public Member Functions

static int getInt (const unsigned char *buf, int byteOrder)
 
static void putInt (int intValue, unsigned char *buf, int byteOrder)
 
static int64 getLong (const unsigned char *buf, int byteOrder)
 
static void putLong (int64 longValue, unsigned char *buf, int byteOrder)
 
static double getDouble (const unsigned char *buf, int byteOrder)
 
static void putDouble (double doubleValue, unsigned char *buf, int byteOrder)
 

Detailed Description

Methods to read and write primitive datatypes from/to byte sequences, allowing the byte order to be specified.

Similar to the standard Java ByteBuffer class.

Definition at line 37 of file ByteOrderValues.h.

Member Enumeration Documentation

Enumerator
ENDIAN_BIG 
ENDIAN_LITTLE 

Definition at line 41 of file ByteOrderValues.h.

Member Function Documentation

static double geos::io::ByteOrderValues::getDouble ( const unsigned char *  buf,
int  byteOrder 
)
static
static int geos::io::ByteOrderValues::getInt ( const unsigned char *  buf,
int  byteOrder 
)
static
static int64 geos::io::ByteOrderValues::getLong ( const unsigned char *  buf,
int  byteOrder 
)
static
static void geos::io::ByteOrderValues::putDouble ( double  doubleValue,
unsigned char *  buf,
int  byteOrder 
)
static
static void geos::io::ByteOrderValues::putInt ( int  intValue,
unsigned char *  buf,
int  byteOrder 
)
static
static void geos::io::ByteOrderValues::putLong ( int64  longValue,
unsigned char *  buf,
int  byteOrder 
)
static

The documentation for this class was generated from the following file: