public class UtilBitAssist extends Object
| 构造器和说明 |
|---|
UtilBitAssist() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte |
getByte(int value,
int bytePos) |
static byte |
getByte(long value,
int bytePos) |
static byte |
getByte(short value,
int bytePos) |
static boolean |
isBit1(byte value,
int pos) |
static void |
main(String[] args) |
static byte |
setBit0(byte value,
int pos) |
static byte |
setBit1(byte value,
int pos) |
static int |
setByte(int value,
int bytePos,
byte byteValue) |
static long |
setByte(long value,
int startPos,
byte byteValue) |
static short |
setByte(short value,
int bytePos,
byte byteValue) |
static String |
toBinary(byte value) |
static String |
toHex(byte value) |
static String |
toHex(int value) |
static String |
toHex(long value) |
static String |
toHex(short value) |
public static byte getByte(int value,
int bytePos)
public static byte getByte(long value,
int bytePos)
public static byte getByte(short value,
int bytePos)
public static boolean isBit1(byte value,
int pos)
public static void main(String[] args)
public static byte setBit0(byte value,
int pos)
public static byte setBit1(byte value,
int pos)
public static int setByte(int value,
int bytePos,
byte byteValue)
public static long setByte(long value,
int startPos,
byte byteValue)
public static short setByte(short value,
int bytePos,
byte byteValue)
public static String toBinary(byte value)
public static String toHex(byte value)
public static String toHex(int value)
public static String toHex(long value)
public static String toHex(short value)
Copyright © 2021. All rights reserved.