com.starbase.util
Class ByteOrder

java.lang.Object
  |
  +--com.starbase.util.ByteOrder

public class ByteOrder
extends java.lang.Object


Constructor Summary
ByteOrder()
           
 
Method Summary
static int[] byteArrayToIntArray(byte[] bytes)
           
static byte[] intArrayToByteArray(int[] ints)
           
static double readDouble(byte[] aBuf)
           
static int readInt(byte[] aBuf)
           
static long readLong(byte[] aBuf)
           
static short readShort(byte[] aBuf)
           
static void writeDouble(byte[] aBuf, double v)
           
static void writeInt(byte[] aBuf, int v)
           
static void writeLong(byte[] aBuf, long v)
           
static void writeShort(byte[] aBuf, int v)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteOrder

public ByteOrder()
Method Detail

readInt

public static final int readInt(byte[] aBuf)

writeInt

public static final void writeInt(byte[] aBuf,
                                  int v)

readDouble

public static final double readDouble(byte[] aBuf)

writeDouble

public static final void writeDouble(byte[] aBuf,
                                     double v)

readLong

public static final long readLong(byte[] aBuf)

writeLong

public static final void writeLong(byte[] aBuf,
                                   long v)

writeShort

public static final void writeShort(byte[] aBuf,
                                    int v)

readShort

public static final short readShort(byte[] aBuf)

intArrayToByteArray

public static final byte[] intArrayToByteArray(int[] ints)

byteArrayToIntArray

public static final int[] byteArrayToIntArray(byte[] bytes)


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.