de.cm.osm2po.sd.primitives
Class Bits

java.lang.Object
  extended by de.cm.osm2po.sd.primitives.Bits

public class Bits
extends java.lang.Object

Author:
(c) 2012 - Carsten Moeller - info@osm2po

Method Summary
static float getFloat(byte[] b, int off)
           
static int getInt(byte[] b, int off)
           
static long getLong(byte[] b, int off)
           
static short getShort(byte[] b, int off)
           
static void putFloat(byte[] b, int off, float val)
           
static void putInt(byte[] b, int off, int val)
           
static void putLong(byte[] b, int off, long val)
           
static void putShort(byte[] b, int off, short val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getShort

public static short getShort(byte[] b,
                             int off)
Parameters:
b - byte[]
off - int Offset
Returns:
short

getInt

public static int getInt(byte[] b,
                         int off)
Parameters:
b - byte[]
off - int Offset
Returns:
int

getFloat

public static float getFloat(byte[] b,
                             int off)
Parameters:
b - byte[]
off - int Offset
Returns:
int

getLong

public static long getLong(byte[] b,
                           int off)
Parameters:
b - byte[]
off - int Offset
Returns:
int

putShort

public static void putShort(byte[] b,
                            int off,
                            short val)
Parameters:
b - byte[] ByteArray
off - Offset
val - short

putInt

public static void putInt(byte[] b,
                          int off,
                          int val)
Parameters:
b - byte[] ByteArray
off - Offset
val - int

putFloat

public static void putFloat(byte[] b,
                            int off,
                            float val)
Parameters:
b - byte[] ByteArray
off - Offset
val - float

putLong

public static void putLong(byte[] b,
                           int off,
                           long val)
Parameters:
b - byte[] ByteArray
off - Offset
val - float

osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de