org.dcm4che2.util
Class ByteUtils
java.lang.Object
org.dcm4che2.util.ByteUtils
public class ByteUtils
- extends java.lang.Object
Method Summary |
static double |
bytesBE2double(byte[] b,
int off)
|
static double[] |
bytesBE2doubles(byte[] b)
|
static float |
bytesBE2float(byte[] b,
int off)
|
static float[] |
bytesBE2floats(byte[] b)
|
static double[] |
bytesBE2floats2doubles(byte[] b)
|
static int |
bytesBE2int(byte[] b,
int off)
|
static int[] |
bytesBE2ints(byte[] b)
|
static long |
bytesBE2long(byte[] b,
int off)
|
static long[] |
bytesBE2longs(byte[] b)
|
static short[] |
bytesBE2shorts(byte[] b)
|
static int |
bytesBE2sshort(byte[] b,
int off)
|
static int[] |
bytesBE2sshorts(byte[] b)
|
static int |
bytesBE2tag(byte[] b,
int off)
|
static int[] |
bytesBE2tags(byte[] b)
|
static int |
bytesBE2ushort(byte[] b,
int off)
|
static int[] |
bytesBE2ushorts(byte[] b)
|
static double |
bytesLE2double(byte[] b,
int off)
|
static double[] |
bytesLE2doubles(byte[] b)
|
static float |
bytesLE2float(byte[] b,
int off)
|
static float[] |
bytesLE2floats(byte[] b)
|
static double[] |
bytesLE2floats2doubles(byte[] b)
|
static int |
bytesLE2int(byte[] b,
int off)
|
static int[] |
bytesLE2ints(byte[] b)
|
static long |
bytesLE2long(byte[] b,
int off)
|
static long[] |
bytesLE2longs(byte[] b)
|
static short[] |
bytesLE2shorts(byte[] b)
|
static int |
bytesLE2sshort(byte[] b,
int off)
|
static int[] |
bytesLE2sshorts(byte[] b)
|
static int |
bytesLE2tag(byte[] b,
int off)
|
static int[] |
bytesLE2tags(byte[] b)
|
static int |
bytesLE2ushort(byte[] b,
int off)
|
static int[] |
bytesLE2ushorts(byte[] b)
|
static byte[] |
double2bytesBE(double val,
byte[] b,
int off)
|
static byte[] |
double2bytesLE(double val,
byte[] b,
int off)
|
static byte[] |
doubles2bytesBE(double[] val)
|
static byte[] |
doubles2bytesLE(double[] val)
|
static byte[] |
float2bytesBE(float val,
byte[] b,
int off)
|
static byte[] |
float2bytesLE(float val,
byte[] b,
int off)
|
static byte[] |
floats2bytesBE(float[] val)
|
static byte[] |
floats2bytesLE(float[] val)
|
static byte[] |
int2bytesBE(int val,
byte[] b,
int off)
|
static byte[] |
int2bytesLE(int val,
byte[] b,
int off)
|
static byte[] |
ints2bytesBE(int[] val)
|
static byte[] |
ints2bytesLE(int[] val)
|
static byte[] |
long2bytesBE(long val,
byte[] b,
int off)
|
static byte[] |
long2bytesLE(long val,
byte[] b,
int off)
|
static byte[] |
longs2bytesBE(long[] val)
|
static byte[] |
longs2bytesLE(long[] val)
|
static byte[] |
shorts2bytesBE(short[] val)
|
static byte[] |
shorts2bytesLE(short[] val)
|
static byte[] |
tag2bytesBE(int tag,
byte[] b,
int off)
|
static byte[] |
tag2bytesLE(int tag,
byte[] b,
int off)
|
static byte[] |
tags2bytesBE(int[] val)
|
static byte[] |
tags2bytesLE(int[] val)
|
static void |
toggleIntEndian(byte[] b)
|
static void |
toggleIntEndian(byte[] b,
int off,
int len)
|
static void |
toggleLongEndian(byte[] b)
|
static void |
toggleLongEndian(byte[] b,
int off,
int len)
|
static void |
toggleShortEndian(byte[] b)
|
static void |
toggleShortEndian(byte[] b,
int off,
int len)
|
static byte[] |
ushort2bytesBE(int val,
byte[] b,
int off)
|
static byte[] |
ushort2bytesLE(int val,
byte[] b,
int off)
|
static byte[] |
ushorts2bytesBE(int[] val)
|
static byte[] |
ushorts2bytesLE(int[] val)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteUtils
public ByteUtils()
int2bytesLE
public static byte[] int2bytesLE(int val,
byte[] b,
int off)
ints2bytesLE
public static byte[] ints2bytesLE(int[] val)
int2bytesBE
public static byte[] int2bytesBE(int val,
byte[] b,
int off)
ints2bytesBE
public static byte[] ints2bytesBE(int[] val)
bytesLE2int
public static int bytesLE2int(byte[] b,
int off)
bytesLE2ints
public static int[] bytesLE2ints(byte[] b)
bytesBE2int
public static int bytesBE2int(byte[] b,
int off)
bytesBE2ints
public static int[] bytesBE2ints(byte[] b)
tag2bytesLE
public static byte[] tag2bytesLE(int tag,
byte[] b,
int off)
tags2bytesLE
public static byte[] tags2bytesLE(int[] val)
tag2bytesBE
public static byte[] tag2bytesBE(int tag,
byte[] b,
int off)
tags2bytesBE
public static byte[] tags2bytesBE(int[] val)
bytesLE2tag
public static int bytesLE2tag(byte[] b,
int off)
bytesLE2tags
public static int[] bytesLE2tags(byte[] b)
bytesBE2tag
public static int bytesBE2tag(byte[] b,
int off)
bytesBE2tags
public static int[] bytesBE2tags(byte[] b)
ushort2bytesLE
public static byte[] ushort2bytesLE(int val,
byte[] b,
int off)
ushorts2bytesLE
public static byte[] ushorts2bytesLE(int[] val)
ushort2bytesBE
public static byte[] ushort2bytesBE(int val,
byte[] b,
int off)
ushorts2bytesBE
public static byte[] ushorts2bytesBE(int[] val)
shorts2bytesLE
public static byte[] shorts2bytesLE(short[] val)
shorts2bytesBE
public static byte[] shorts2bytesBE(short[] val)
bytesLE2ushort
public static int bytesLE2ushort(byte[] b,
int off)
bytesLE2ushorts
public static int[] bytesLE2ushorts(byte[] b)
bytesBE2ushort
public static int bytesBE2ushort(byte[] b,
int off)
bytesBE2ushorts
public static int[] bytesBE2ushorts(byte[] b)
bytesLE2sshort
public static int bytesLE2sshort(byte[] b,
int off)
bytesLE2sshorts
public static int[] bytesLE2sshorts(byte[] b)
bytesBE2sshort
public static int bytesBE2sshort(byte[] b,
int off)
bytesBE2sshorts
public static int[] bytesBE2sshorts(byte[] b)
bytesLE2shorts
public static short[] bytesLE2shorts(byte[] b)
bytesBE2shorts
public static short[] bytesBE2shorts(byte[] b)
float2bytesLE
public static byte[] float2bytesLE(float val,
byte[] b,
int off)
floats2bytesLE
public static byte[] floats2bytesLE(float[] val)
float2bytesBE
public static byte[] float2bytesBE(float val,
byte[] b,
int off)
floats2bytesBE
public static byte[] floats2bytesBE(float[] val)
bytesLE2float
public static float bytesLE2float(byte[] b,
int off)
bytesLE2floats
public static float[] bytesLE2floats(byte[] b)
bytesLE2floats2doubles
public static double[] bytesLE2floats2doubles(byte[] b)
bytesBE2float
public static float bytesBE2float(byte[] b,
int off)
bytesBE2floats
public static float[] bytesBE2floats(byte[] b)
bytesBE2floats2doubles
public static double[] bytesBE2floats2doubles(byte[] b)
long2bytesLE
public static byte[] long2bytesLE(long val,
byte[] b,
int off)
longs2bytesLE
public static byte[] longs2bytesLE(long[] val)
long2bytesBE
public static byte[] long2bytesBE(long val,
byte[] b,
int off)
longs2bytesBE
public static byte[] longs2bytesBE(long[] val)
bytesLE2long
public static long bytesLE2long(byte[] b,
int off)
bytesLE2longs
public static long[] bytesLE2longs(byte[] b)
bytesBE2long
public static long bytesBE2long(byte[] b,
int off)
bytesBE2longs
public static long[] bytesBE2longs(byte[] b)
double2bytesLE
public static byte[] double2bytesLE(double val,
byte[] b,
int off)
doubles2bytesLE
public static byte[] doubles2bytesLE(double[] val)
double2bytesBE
public static byte[] double2bytesBE(double val,
byte[] b,
int off)
doubles2bytesBE
public static byte[] doubles2bytesBE(double[] val)
bytesLE2double
public static double bytesLE2double(byte[] b,
int off)
bytesLE2doubles
public static double[] bytesLE2doubles(byte[] b)
bytesBE2double
public static double bytesBE2double(byte[] b,
int off)
bytesBE2doubles
public static double[] bytesBE2doubles(byte[] b)
toggleShortEndian
public static void toggleShortEndian(byte[] b)
toggleShortEndian
public static void toggleShortEndian(byte[] b,
int off,
int len)
toggleIntEndian
public static void toggleIntEndian(byte[] b)
toggleIntEndian
public static void toggleIntEndian(byte[] b,
int off,
int len)
toggleLongEndian
public static void toggleLongEndian(byte[] b)
toggleLongEndian
public static void toggleLongEndian(byte[] b,
int off,
int len)
Copyright © 2011 dcm4che. All Rights Reserved.