public class BytesUtil extends Object
| Constructor and Description |
|---|
BytesUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
bytes2int(byte[] bytes,
boolean bigEndian) |
static int |
bytes2int(byte[] bytes,
int offset,
boolean bigEndian) |
static long |
bytes2long(byte[] bytes,
boolean bigEndian) |
static long |
bytes2long(byte[] bytes,
int offset,
boolean bigEndian) |
static short |
bytes2short(byte[] bytes,
boolean bigEndian) |
static short |
bytes2short(byte[] bytes,
int offset,
boolean bigEndian) |
static byte[] |
duplicate(byte[] bytes) |
static byte[] |
duplicate(byte[] bytes,
int offset,
int len) |
static byte[] |
int2bytes(int val,
boolean bigEndian) |
static void |
int2bytes(int val,
byte[] bytes,
int offset,
boolean bigEndian) |
static byte[] |
long2bytes(long val,
boolean bigEndian) |
static void |
long2bytes(long val,
byte[] bytes,
int offset,
boolean bigEndian) |
static byte[] |
padding(byte[] data,
int block) |
static byte[] |
short2bytes(int val,
boolean bigEndian) |
static void |
short2bytes(int val,
byte[] bytes,
int offset,
boolean bigEndian) |
static void |
xor(byte[] a,
byte[] b,
byte[] output) |
static void |
xor(byte[] input,
int offset,
byte[] output) |
public static short bytes2short(byte[] bytes,
int offset,
boolean bigEndian)
public static short bytes2short(byte[] bytes,
boolean bigEndian)
public static byte[] short2bytes(int val,
boolean bigEndian)
public static void short2bytes(int val,
byte[] bytes,
int offset,
boolean bigEndian)
public static int bytes2int(byte[] bytes,
boolean bigEndian)
public static int bytes2int(byte[] bytes,
int offset,
boolean bigEndian)
public static byte[] int2bytes(int val,
boolean bigEndian)
public static void int2bytes(int val,
byte[] bytes,
int offset,
boolean bigEndian)
public static byte[] long2bytes(long val,
boolean bigEndian)
public static void long2bytes(long val,
byte[] bytes,
int offset,
boolean bigEndian)
public static long bytes2long(byte[] bytes,
boolean bigEndian)
public static long bytes2long(byte[] bytes,
int offset,
boolean bigEndian)
public static byte[] padding(byte[] data,
int block)
public static byte[] duplicate(byte[] bytes)
public static byte[] duplicate(byte[] bytes,
int offset,
int len)
public static void xor(byte[] input,
int offset,
byte[] output)
public static void xor(byte[] a,
byte[] b,
byte[] output)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.