public class StructHelper extends Object
| Constructor and Description |
|---|
StructHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
byteSwapInt(int swap) |
static long |
byteSwapLong(long swap) |
static short |
byteSwapShort(short swap) |
static long |
byteSwapUInt(long swap) |
static int |
byteSwapUShort(int swap) |
static void |
htonl(byte[] buf,
int off,
int value) |
static int |
htonl(int num) |
static void |
htons(byte[] buf,
int off,
int value) |
static int |
htons(int num) |
static int |
ntohl(byte[] buf,
int off) |
static int |
ntohl(int num) |
static int |
ntohs(byte[] buf,
int off) |
static int |
ntohs(int num) |
static byte |
readByte(byte[] buf,
int off) |
static double |
readDouble(byte[] buf,
int off) |
static float |
readFloat(byte[] buf,
int off) |
static int |
readInt(byte[] buf,
int off) |
static long |
readLong(byte[] buf,
int off) |
static short |
readShort(byte[] buf,
int off) |
static int |
readUByte(byte[] buf,
int off) |
static long |
readUInt(byte[] buf,
int off) |
static int |
readUShort(byte[] buf,
int off) |
static void |
writeByte(byte[] buf,
int off,
byte value) |
static void |
writeByte(byte[] buf,
int off,
int value) |
static void |
writeInt(byte[] buf,
int off,
int value) |
static void |
writeInt(byte[] buf,
int off,
long value) |
static void |
writeLong(byte[] buf,
int off,
long value) |
static void |
writeShort(byte[] buf,
int off,
int value) |
static void |
writeShort(byte[] buf,
int off,
short value) |
public static int byteSwapInt(int swap)
public static long byteSwapUInt(long swap)
public static long byteSwapLong(long swap)
public static short byteSwapShort(short swap)
public static int byteSwapUShort(int swap)
public static int readInt(byte[] buf,
int off)
public static short readShort(byte[] buf,
int off)
public static long readLong(byte[] buf,
int off)
public static float readFloat(byte[] buf,
int off)
public static double readDouble(byte[] buf,
int off)
public static int readUShort(byte[] buf,
int off)
public static long readUInt(byte[] buf,
int off)
public static int readUByte(byte[] buf,
int off)
public static byte readByte(byte[] buf,
int off)
public static void writeByte(byte[] buf,
int off,
byte value)
public static void writeByte(byte[] buf,
int off,
int value)
public static void writeShort(byte[] buf,
int off,
short value)
public static void writeShort(byte[] buf,
int off,
int value)
public static void writeInt(byte[] buf,
int off,
int value)
public static void writeInt(byte[] buf,
int off,
long value)
public static void writeLong(byte[] buf,
int off,
long value)
public static int htonl(int num)
public static int htons(int num)
public static int ntohl(int num)
public static int ntohs(int num)
public static int ntohs(byte[] buf,
int off)
public static void htons(byte[] buf,
int off,
int value)
public static int ntohl(byte[] buf,
int off)
public static void htonl(byte[] buf,
int off,
int value)
Copyright © 2024. All rights reserved.