public class BitConverter extends Object
| Constructor and Description |
|---|
BitConverter() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(boolean data) |
static byte[] |
getBytes(char data) |
static byte[] |
getBytes(double data) |
static byte[] |
getBytes(float data) |
static byte[] |
getBytes(int data) |
static byte[] |
getBytes(long data) |
static byte[] |
getBytes(short data) |
static byte[] |
getBytes(String data) |
static byte[] |
getBytes(String data,
String charsetName) |
static boolean |
toBoolean(byte[] bytes) |
static boolean |
toBoolean(byte[] bytes,
int startIndex) |
static char |
toChar(byte[] bytes) |
static char |
toChar(byte[] bytes,
int startIndex) |
static double |
toDouble(byte[] bytes) |
static double |
toDouble(byte[] bytes,
int startIndex) |
static float |
toFloat(byte[] bytes) |
static float |
toFloat(byte[] bytes,
int startIndex) |
static String |
toHexString(byte[] bytes) |
static int |
toInt(byte[] bytes) |
static int |
toInt(byte[] bytes,
int startIndex) |
static long |
toLong(byte[] bytes) |
static long |
toLong(byte[] bytes,
int startIndex) |
static short |
toShort(byte[] bytes) |
static short |
toShort(byte[] bytes,
int startIndex) |
static String |
toString(byte[] bytes) |
static String |
toString(byte[] bytes,
String charsetName) |
public static byte[] getBytes(boolean data)
public static byte[] getBytes(short data)
public static byte[] getBytes(char data)
public static byte[] getBytes(int data)
public static byte[] getBytes(long data)
public static byte[] getBytes(float data)
public static byte[] getBytes(double data)
public static byte[] getBytes(String data)
public static boolean toBoolean(byte[] bytes)
public static boolean toBoolean(byte[] bytes,
int startIndex)
public static short toShort(byte[] bytes)
public static short toShort(byte[] bytes,
int startIndex)
public static char toChar(byte[] bytes)
public static char toChar(byte[] bytes,
int startIndex)
public static int toInt(byte[] bytes)
public static int toInt(byte[] bytes,
int startIndex)
public static long toLong(byte[] bytes)
public static long toLong(byte[] bytes,
int startIndex)
public static float toFloat(byte[] bytes)
public static float toFloat(byte[] bytes,
int startIndex)
public static double toDouble(byte[] bytes)
public static double toDouble(byte[] bytes,
int startIndex)
public static String toString(byte[] bytes)
public static String toHexString(byte[] bytes)
Copyright © 2022 DolphinDB. All rights reserved.