public class UnsafeMemory extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static UnsafeMemory |
allocate(int size) |
void |
dispose() |
int |
getSize() |
byte |
read(long pos)
read one byte
|
void |
read(long pos,
byte[] src) |
void |
read(long pos,
byte[] src,
int size) |
void |
read(long pos,
byte[] src,
int offset,
int size) |
void |
write(long pos,
byte[] src) |
void |
write(long pos,
byte[] src,
int size) |
void |
write(long pos,
byte[] src,
int offset,
int size) |
public static UnsafeMemory allocate(int size)
public void write(long pos,
byte[] src,
int offset,
int size)
public void write(long pos,
byte[] src,
int size)
public void write(long pos,
byte[] src)
public void read(long pos,
byte[] src,
int offset,
int size)
public void read(long pos,
byte[] src,
int size)
public void read(long pos,
byte[] src)
public void dispose()
public int getSize()
public byte read(long pos)
pos - Copyright © 2014. All rights reserved.