public final class BitUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BYTE_MAX_VALUE |
static boolean |
LITTLE_ENDIAN |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
getBigEndianBytes(char value) |
static byte[] |
getBigEndianBytes(double value) |
static byte[] |
getBigEndianBytes(float value) |
static byte[] |
getBigEndianBytes(int value) |
static byte[] |
getBigEndianBytes(long value) |
static byte[] |
getBigEndianBytes(short value) |
static byte[] |
getBytes(boolean value) |
static byte[] |
getBytes(char value) |
static byte[] |
getBytes(double value) |
static byte[] |
getBytes(float value) |
static byte[] |
getBytes(int value) |
static byte[] |
getBytes(long value) |
static byte[] |
getBytes(short value) |
static byte[] |
getLittleEndianBytes(char value) |
static byte[] |
getLittleEndianBytes(double value) |
static byte[] |
getLittleEndianBytes(float value) |
static byte[] |
getLittleEndianBytes(int value) |
static byte[] |
getLittleEndianBytes(long value) |
static byte[] |
getLittleEndianBytes(short value) |
static char |
toBigEndianCharacter(byte[] value,
int startIndex) |
static double |
toBigEndianDouble(byte[] value,
int startIndex) |
static float |
toBigEndianFloat(byte[] value,
int startIndex) |
static int |
toBigEndianInteger(byte[] value,
int startIndex) |
static long |
toBigEndianLong(byte[] value,
int startIndex) |
static short |
toBigEndianShort(byte[] value,
int startIndex) |
static char |
toCharacter(byte[] value,
int startIndex) |
static double |
toDouble(byte[] value,
int startIndex) |
static float |
toFloat(byte[] value,
int startIndex) |
static int |
toInteger(byte[] value,
int startIndex) |
static char |
toLittleEndianCharacter(byte[] value,
int startIndex) |
static double |
toLittleEndianDouble(byte[] value,
int startIndex) |
static float |
toLittleEndianFloat(byte[] value,
int startIndex) |
static int |
toLittleEndianInteger(byte[] value,
int startIndex) |
static long |
toLittleEndianLong(byte[] value,
int startIndex) |
static short |
toLittleEndianShort(byte[] value,
int startIndex) |
static long |
toLong(byte[] value,
int startIndex) |
static short |
toShort(byte[] value,
int startIndex) |
static String |
toString(byte[] value) |
static String |
toString(byte[] value,
char separator) |
static String |
toString(byte[] value,
CharSequence separator) |
static String |
toString(byte[] value,
int startIndex) |
static String |
toString(byte[] value,
int startIndex,
char separator) |
static String |
toString(byte[] value,
int startIndex,
CharSequence separator) |
static String |
toString(byte[] value,
int startIndex,
int length) |
static String |
toString(byte[] value,
int startIndex,
int length,
char separator) |
static String |
toString(byte[] value,
int startIndex,
int length,
CharSequence separator) |
static String |
toString(byte[] value,
int startIndex,
int length,
String separator) |
static String |
toString(byte[] value,
int startIndex,
String separator) |
static String |
toString(byte[] value,
String separator) |
public static final int BYTE_MAX_VALUE
public static final boolean LITTLE_ENDIAN
public static byte[] getBytes(boolean value)
public static byte[] getBytes(short value)
public static byte[] getBytes(char value)
public static byte[] getBytes(int value)
public static byte[] getBytes(long value)
public static byte[] getBytes(float value)
public static byte[] getBytes(double value)
public static byte[] getLittleEndianBytes(short value)
public static byte[] getLittleEndianBytes(char value)
public static byte[] getLittleEndianBytes(int value)
public static byte[] getLittleEndianBytes(long value)
public static byte[] getLittleEndianBytes(float value)
public static byte[] getLittleEndianBytes(double value)
public static byte[] getBigEndianBytes(short value)
public static byte[] getBigEndianBytes(char value)
public static byte[] getBigEndianBytes(int value)
public static byte[] getBigEndianBytes(long value)
public static byte[] getBigEndianBytes(float value)
public static byte[] getBigEndianBytes(double value)
public static short toShort(byte[] value,
int startIndex)
public static char toCharacter(byte[] value,
int startIndex)
public static int toInteger(byte[] value,
int startIndex)
public static long toLong(byte[] value,
int startIndex)
public static float toFloat(byte[] value,
int startIndex)
public static double toDouble(byte[] value,
int startIndex)
public static short toLittleEndianShort(byte[] value,
int startIndex)
public static char toLittleEndianCharacter(byte[] value,
int startIndex)
public static int toLittleEndianInteger(byte[] value,
int startIndex)
public static long toLittleEndianLong(byte[] value,
int startIndex)
public static float toLittleEndianFloat(byte[] value,
int startIndex)
public static double toLittleEndianDouble(byte[] value,
int startIndex)
public static short toBigEndianShort(byte[] value,
int startIndex)
public static char toBigEndianCharacter(byte[] value,
int startIndex)
public static int toBigEndianInteger(byte[] value,
int startIndex)
public static long toBigEndianLong(byte[] value,
int startIndex)
public static float toBigEndianFloat(byte[] value,
int startIndex)
public static double toBigEndianDouble(byte[] value,
int startIndex)
public static String toString(byte[] value)
public static String toString(byte[] value, char separator)
public static String toString(byte[] value, CharSequence separator)
public static String toString(byte[] value, int startIndex)
public static String toString(byte[] value, int startIndex, char separator)
public static String toString(byte[] value, int startIndex, CharSequence separator)
public static String toString(byte[] value, int startIndex, int length)
public static String toString(byte[] value, int startIndex, int length, char separator)
public static String toString(byte[] value, int startIndex, int length, CharSequence separator)
Copyright © 2023. All rights reserved.