public class FileIO
extends java.lang.Object
| Constructor and Description |
|---|
FileIO() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
allocBuffer(int bytes) |
static byte[] |
allocBufferN(byte[] buf,
int bytes) |
static void |
fclose(int fd) |
static long |
fid(int fd) |
static int |
fopen(java.lang.String fname,
int dir) |
static int |
fopen(java.lang.String fname,
int dir,
int flags) |
static int |
fread(int fd,
long lbuf,
int boff,
int bytes) |
static int |
freadb(int fd,
java.lang.Object buf,
int boff,
int bytes) |
static void |
freeBuffer(byte[] buf) |
static int |
freeBufferN(byte[] buf) |
static long |
fseek(int fd,
long offset) |
static int |
fwrite(int fd,
long lbuf,
int boff,
int bytes) |
static int |
fwriteb(int fd,
java.lang.Object buf,
int boff,
int bytes) |
static boolean |
initUse() |
static long |
malloc(long size)
Allocates a block of native memory
|
static int |
mfree(long ptr)
Frees a block of native memory
|
public static boolean initUse()
public static int fopen(java.lang.String fname,
int dir,
int flags)
public static int fread(int fd,
long lbuf,
int boff,
int bytes)
public static int fwrite(int fd,
long lbuf,
int boff,
int bytes)
public static int freadb(int fd,
java.lang.Object buf,
int boff,
int bytes)
public static int fwriteb(int fd,
java.lang.Object buf,
int boff,
int bytes)
public static long fseek(int fd,
long offset)
public static void fclose(int fd)
public static long fid(int fd)
public static int fopen(java.lang.String fname,
int dir)
public static byte[] allocBufferN(byte[] buf,
int bytes)
public static int freeBufferN(byte[] buf)
public static byte[] allocBuffer(int bytes)
public static void freeBuffer(byte[] buf)
public static long malloc(long size)
size - number of bytes to allocatepublic static int mfree(long ptr)
ptr - pointer to the starting address to free