public abstract class Platform
extends java.lang.Object
| 构造器和说明 |
|---|
Platform() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract int |
getIntSize() |
static Platform |
getPlatform() |
abstract int |
orderByteToInt(byte[] data)
Convert a byte array to int,
Use this function to get address from memory.
|
abstract long |
orderByteToLong(byte[] data)
Convert a byte array to long,
Use this function to get address from memory.
|
abstract byte[] |
orderIntToByte(int serial) |
abstract byte[] |
orderLongToByte(long serial,
int length) |
public static Platform getPlatform()
public abstract int orderByteToInt(byte[] data)
data - byte arraypublic abstract long orderByteToLong(byte[] data)
data - byte arraypublic abstract byte[] orderLongToByte(long serial,
int length)
public abstract byte[] orderIntToByte(int serial)
public abstract int getIntSize()