org.hypergraphdb.storage
Class BAUtils

java.lang.Object
  extended by org.hypergraphdb.storage.BAUtils

public class BAUtils
extends java.lang.Object

This class contains some utilities methods to read/write primitively typed values from/to a byte buffer.

Author:
Borislav Iordanov

Constructor Summary
BAUtils()
           
 
Method Summary
static int compare(byte[] left, int leftPos, byte[] right, int rightPos, int max)
           
static boolean eq(byte[] left, int leftPos, byte[] right, int rightPos, int size)
           
static int readInt(byte[] buffer, int offset)
           
static void writeInt(int c, byte[] buffer, int offset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BAUtils

public BAUtils()
Method Detail

readInt

public static int readInt(byte[] buffer,
                          int offset)

writeInt

public static void writeInt(int c,
                            byte[] buffer,
                            int offset)

eq

public static boolean eq(byte[] left,
                         int leftPos,
                         byte[] right,
                         int rightPos,
                         int size)

compare

public static int compare(byte[] left,
                          int leftPos,
                          byte[] right,
                          int rightPos,
                          int max)