public class ByteUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_BYTES |
static double[] |
EMPTY_DOUBLES |
static float[] |
EMPTY_FLOATS |
static int[] |
EMPTY_INTS |
| Constructor and Description |
|---|
ByteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
bytesToDouble(byte[] bytes,
int off,
boolean bigEndian) |
static double |
bytesToDoubleBE(byte[] bytes,
int off) |
static double |
bytesToDoubleLE(byte[] bytes,
int off) |
static float |
bytesToFloat(byte[] bytes,
int off,
boolean bigEndian) |
static float |
bytesToFloatBE(byte[] bytes,
int off) |
static float |
bytesToFloatLE(byte[] bytes,
int off) |
static int |
bytesToInt(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToIntBE(byte[] bytes,
int off) |
static int |
bytesToIntLE(byte[] bytes,
int off) |
static long |
bytesToLong(byte[] bytes,
int off,
boolean bigEndian) |
static long |
bytesToLongBE(byte[] bytes,
int off) |
static long |
bytesToLongLE(byte[] bytes,
int off) |
static int |
bytesToShort(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToShortBE(byte[] bytes,
int off) |
static int |
bytesToShortLE(byte[] bytes,
int off) |
static int |
bytesToTag(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToTagBE(byte[] bytes,
int off) |
static int |
bytesToTagLE(byte[] bytes,
int off) |
static int |
bytesToUShort(byte[] bytes,
int off,
boolean bigEndian) |
static int |
bytesToUShortBE(byte[] bytes,
int off) |
static int |
bytesToUShortLE(byte[] bytes,
int off) |
static int |
bytesToVR(byte[] bytes,
int off) |
static byte[] |
doubleToBytes(double d,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
doubleToBytesBE(double d,
byte[] bytes,
int off) |
static byte[] |
doubleToBytesLE(double d,
byte[] bytes,
int off) |
static byte[] |
floatToBytes(float f,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
floatToBytesBE(float f,
byte[] bytes,
int off) |
static byte[] |
floatToBytesLE(float f,
byte[] bytes,
int off) |
static byte[] |
intToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
intToBytesBE(int i,
byte[] bytes,
int off) |
static byte[] |
intToBytesLE(int i,
byte[] bytes,
int off) |
static byte[] |
longToBytes(long l,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
longToBytesBE(long l,
byte[] bytes,
int off) |
static byte[] |
longToBytesLE(long l,
byte[] bytes,
int off) |
static byte[] |
shortToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
shortToBytesBE(int i,
byte[] bytes,
int off) |
static byte[] |
shortToBytesLE(int i,
byte[] bytes,
int off) |
static byte[] |
swapInts(byte[] b,
int off,
int len) |
static byte[] |
swapLongs(byte[] b,
int off,
int len) |
static byte[] |
swapShorts(byte[] b,
int off,
int len) |
static byte[] |
tagToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian) |
static byte[] |
tagToBytesBE(int i,
byte[] bytes,
int off) |
static byte[] |
tagToBytesLE(int i,
byte[] bytes,
int off) |
public static final byte[] EMPTY_BYTES
public static final int[] EMPTY_INTS
public static final float[] EMPTY_FLOATS
public static final double[] EMPTY_DOUBLES
public static int bytesToVR(byte[] bytes,
int off)
public static int bytesToUShort(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToUShortBE(byte[] bytes,
int off)
public static int bytesToUShortLE(byte[] bytes,
int off)
public static int bytesToShort(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToShortBE(byte[] bytes,
int off)
public static int bytesToShortLE(byte[] bytes,
int off)
public static int bytesToInt(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToIntBE(byte[] bytes,
int off)
public static int bytesToIntLE(byte[] bytes,
int off)
public static int bytesToTag(byte[] bytes,
int off,
boolean bigEndian)
public static int bytesToTagBE(byte[] bytes,
int off)
public static int bytesToTagLE(byte[] bytes,
int off)
public static float bytesToFloat(byte[] bytes,
int off,
boolean bigEndian)
public static float bytesToFloatBE(byte[] bytes,
int off)
public static float bytesToFloatLE(byte[] bytes,
int off)
public static long bytesToLong(byte[] bytes,
int off,
boolean bigEndian)
public static long bytesToLongBE(byte[] bytes,
int off)
public static long bytesToLongLE(byte[] bytes,
int off)
public static double bytesToDouble(byte[] bytes,
int off,
boolean bigEndian)
public static double bytesToDoubleBE(byte[] bytes,
int off)
public static double bytesToDoubleLE(byte[] bytes,
int off)
public static byte[] shortToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] shortToBytesBE(int i,
byte[] bytes,
int off)
public static byte[] shortToBytesLE(int i,
byte[] bytes,
int off)
public static byte[] intToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] intToBytesBE(int i,
byte[] bytes,
int off)
public static byte[] intToBytesLE(int i,
byte[] bytes,
int off)
public static byte[] tagToBytes(int i,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] tagToBytesBE(int i,
byte[] bytes,
int off)
public static byte[] tagToBytesLE(int i,
byte[] bytes,
int off)
public static byte[] floatToBytes(float f,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] floatToBytesBE(float f,
byte[] bytes,
int off)
public static byte[] floatToBytesLE(float f,
byte[] bytes,
int off)
public static byte[] doubleToBytes(double d,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] doubleToBytesBE(double d,
byte[] bytes,
int off)
public static byte[] doubleToBytesLE(double d,
byte[] bytes,
int off)
public static byte[] longToBytes(long l,
byte[] bytes,
int off,
boolean bigEndian)
public static byte[] longToBytesBE(long l,
byte[] bytes,
int off)
public static byte[] longToBytesLE(long l,
byte[] bytes,
int off)
public static byte[] swapShorts(byte[] b,
int off,
int len)
public static byte[] swapInts(byte[] b,
int off,
int len)
public static byte[] swapLongs(byte[] b,
int off,
int len)
Copyright © 2014 dcm4che.org. All rights reserved.