ch.bind.philib.io
Class EndianCodec

java.lang.Object
  extended by ch.bind.philib.io.EndianCodec

public final class EndianCodec
extends Object

Author:
Philipp Meinen

Method Summary
static int decodeInt16BE(byte[] input)
           
static int decodeInt16BE(byte[] input, int offset)
           
static int decodeInt16LE(byte[] input)
           
static int decodeInt16LE(byte[] input, int offset)
           
static int decodeInt32BE(byte[] input)
           
static int decodeInt32BE(byte[] input, int offset)
           
static int decodeInt32LE(byte[] input)
           
static int decodeInt32LE(byte[] input, int offset)
           
static long decodeInt64BE(byte[] input)
           
static long decodeInt64BE(byte[] input, int offset)
           
static long decodeInt64LE(byte[] input)
           
static long decodeInt64LE(byte[] input, int offset)
           
static int decodeInt8(byte[] input)
           
static int decodeInt8(byte[] input, int offset)
           
static void encodeInt16BE(int value, byte[] output)
           
static void encodeInt16BE(int value, byte[] output, int offset)
           
static void encodeInt16LE(int value, byte[] output)
           
static void encodeInt16LE(int value, byte[] output, int offset)
           
static void encodeInt32BE(int value, byte[] output)
           
static void encodeInt32BE(int value, byte[] output, int offset)
           
static void encodeInt32LE(int value, byte[] output)
           
static void encodeInt32LE(int value, byte[] output, int offset)
           
static void encodeInt64BE(long value, byte[] output)
           
static void encodeInt64BE(long value, byte[] output, int offset)
           
static void encodeInt64LE(long value, byte[] output)
           
static void encodeInt64LE(long value, byte[] output, int offset)
           
static void encodeInt8(int value, byte[] output)
           
static void encodeInt8(int value, byte[] output, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeInt64BE

public static void encodeInt64BE(long value,
                                 byte[] output)

encodeInt64LE

public static void encodeInt64LE(long value,
                                 byte[] output)

encodeInt64BE

public static void encodeInt64BE(long value,
                                 byte[] output,
                                 int offset)

encodeInt64LE

public static void encodeInt64LE(long value,
                                 byte[] output,
                                 int offset)

decodeInt64BE

public static long decodeInt64BE(byte[] input)

decodeInt64LE

public static long decodeInt64LE(byte[] input)

decodeInt64BE

public static long decodeInt64BE(byte[] input,
                                 int offset)

decodeInt64LE

public static long decodeInt64LE(byte[] input,
                                 int offset)

encodeInt32BE

public static void encodeInt32BE(int value,
                                 byte[] output)

encodeInt32LE

public static void encodeInt32LE(int value,
                                 byte[] output)

encodeInt32BE

public static void encodeInt32BE(int value,
                                 byte[] output,
                                 int offset)

encodeInt32LE

public static void encodeInt32LE(int value,
                                 byte[] output,
                                 int offset)

decodeInt32BE

public static int decodeInt32BE(byte[] input)

decodeInt32LE

public static int decodeInt32LE(byte[] input)

decodeInt32BE

public static int decodeInt32BE(byte[] input,
                                int offset)

decodeInt32LE

public static int decodeInt32LE(byte[] input,
                                int offset)

encodeInt16BE

public static void encodeInt16BE(int value,
                                 byte[] output)

encodeInt16LE

public static void encodeInt16LE(int value,
                                 byte[] output)

encodeInt16BE

public static void encodeInt16BE(int value,
                                 byte[] output,
                                 int offset)

encodeInt16LE

public static void encodeInt16LE(int value,
                                 byte[] output,
                                 int offset)

decodeInt16BE

public static int decodeInt16BE(byte[] input)

decodeInt16LE

public static int decodeInt16LE(byte[] input)

decodeInt16BE

public static int decodeInt16BE(byte[] input,
                                int offset)

decodeInt16LE

public static int decodeInt16LE(byte[] input,
                                int offset)

encodeInt8

public static void encodeInt8(int value,
                              byte[] output)

encodeInt8

public static void encodeInt8(int value,
                              byte[] output,
                              int offset)

decodeInt8

public static int decodeInt8(byte[] input)

decodeInt8

public static int decodeInt8(byte[] input,
                             int offset)


Copyright © 2013. All Rights Reserved.