public class ByteUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
get31Bits(byte[] input,
int firstByte) |
static long |
getFourBytes(byte[] input,
int firstByte) |
static int |
getOneByte(byte[] input,
int pos) |
static int |
getThreeBytes(byte[] input,
int firstByte) |
static int |
getTwoBytes(byte[] input,
int firstByte) |
static boolean |
isBit7Set(byte input) |
static void |
set31Bits(byte[] output,
int firstByte,
int value) |
static void |
setFourBytes(byte[] output,
int firstByte,
long value) |
static void |
setOneBytes(byte[] output,
int firstByte,
int value) |
static void |
setThreeBytes(byte[] output,
int firstByte,
int value) |
static void |
setTwoBytes(byte[] output,
int firstByte,
int value) |
public static boolean isBit7Set(byte input)
public static int get31Bits(byte[] input,
int firstByte)
public static void set31Bits(byte[] output,
int firstByte,
int value)
public static int getOneByte(byte[] input,
int pos)
public static int getTwoBytes(byte[] input,
int firstByte)
public static int getThreeBytes(byte[] input,
int firstByte)
public static void setOneBytes(byte[] output,
int firstByte,
int value)
public static void setTwoBytes(byte[] output,
int firstByte,
int value)
public static void setThreeBytes(byte[] output,
int firstByte,
int value)
public static long getFourBytes(byte[] input,
int firstByte)
public static void setFourBytes(byte[] output,
int firstByte,
long value)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.