Allows different platforms to call different native methods
for read and write operations.
| Method from sun.nio.ch.SocketDispatcher Detail: |
void close(FileDescriptor fd) throws IOException {
}
|
static native void close0(FileDescriptor fd) throws IOException
|
void preClose(FileDescriptor fd) throws IOException {
close0(fd);
}
|
int read(FileDescriptor fd,
long address,
int len) throws IOException {
Util.load();
return read0(fd, address, len);
}
|
static native int read0(FileDescriptor fd,
long address,
int len) throws IOException
|
long readv(FileDescriptor fd,
long address,
int len) throws IOException {
return readv0(fd, address, len);
}
|
static native long readv0(FileDescriptor fd,
long address,
int len) throws IOException
|
int write(FileDescriptor fd,
long address,
int len) throws IOException {
return write0(fd, address, len);
}
|
static native int write0(FileDescriptor fd,
long address,
int len) throws IOException
|
long writev(FileDescriptor fd,
long address,
int len) throws IOException {
return writev0(fd, address, len);
}
|
static native long writev0(FileDescriptor fd,
long address,
int len) throws IOException
|