| Package | Description |
|---|---|
| eu.aschuetz.nativeutils.api |
| Modifier and Type | Method and Description |
|---|---|
boolean |
WindowsNativeUtil._locking(int fd,
WindowsNativeUtil._locking_Mode mode,
long len)
returns true if successful false if not.
|
void |
LinuxNativeUtil.bind(int fd,
Sockaddr sockaddr)
Binds a socket to a address.
|
void |
LinuxNativeUtil.close(int fd)
Close a file descriptor
|
void |
WindowsNativeUtil.CloseHandle(long handle)
Closes a windows handle.
|
void |
LinuxNativeUtil.connect(int fd,
Sockaddr sockaddr)
calls connect using a generic socket address.
|
int |
LinuxNativeUtil.fcntl(int fd,
int code) |
int |
LinuxNativeUtil.fcntl(int fd,
int code,
byte[] param,
int off) |
int |
LinuxNativeUtil.fcntl(int fd,
int code,
int param) |
int |
LinuxNativeUtil.fcntl(int fd,
int code,
long param) |
int |
LinuxNativeUtil.fcntl(int fd,
int code,
NativeMemory param,
long off) |
Stat |
LinuxNativeUtil.fstat(int descriptor)
Gets information about a opened file descriptor
|
void |
LinuxNativeUtil.fsync(int fd) |
String |
WindowsNativeUtil.GetFinalPathNameByHandleA(long handle,
boolean normalize,
WindowsNativeUtil.Path_VolumeName volumeName) |
String |
WindowsNativeUtil.GetFinalPathNameByHandleW(long handle,
boolean normalize,
WindowsNativeUtil.Path_VolumeName volumeName) |
int |
WindowsNativeUtil.GetOverlappedResult(long handle,
long overlapped,
boolean wait)
Gets the result from an async io operation on a handle.
|
void |
LinuxNativeUtil.getsockname(int fd,
Sockaddr sockaddr)
Writes the socket address the socket is bound to into the given Sockaddr object.
|
int |
LinuxNativeUtil.getsockopt(int fd,
int level,
int optname)
returns a "int" socket option.
|
byte[] |
LinuxNativeUtil.getsockopt(int fd,
int level,
int optname,
int payloadSize)
returns a custom payload socket option.
|
int |
LinuxNativeUtil.ioctl(int fd,
int code)
trigger an ioctl with a device.
|
int |
LinuxNativeUtil.ioctl(int fd,
int code,
byte[] buf,
int off)
trigger an ioctl with a device.
|
int |
LinuxNativeUtil.ioctl(int fd,
int code,
long param)
trigger an ioctl with a device.
|
int |
LinuxNativeUtil.ioctl(int fd,
int code,
NativeMemory mem,
long off)
trigger an ioctl with a device.
|
boolean |
WindowsNativeUtil.LockFileEx(long handle,
boolean exclusive,
boolean failImmediately,
long start,
long len)
returns true if successful false if not.
|
long |
LinuxNativeUtil.lseek(int fd,
long off,
LinuxNativeUtil.lseek_whence whence) |
long |
LinuxNativeUtil.mmap(int fd,
long length,
int flags,
boolean read,
boolean write,
long offset)
Maps a file descriptor into memory.
|
int |
LinuxNativeUtil.read(int fd,
byte[] buffer,
int off,
int len)
Reads from a file descriptor.
|
int |
LinuxNativeUtil.read(int fd,
ByteBuffer buf,
int len)
Reads from a file descriptor.
|
int |
LinuxNativeUtil.read(int fd,
NativeMemory mem,
long off,
int len)
Reads from a file descriptor.
|
int |
WindowsNativeUtil.ReadFile(long handle,
byte[] buffer,
int off,
int len)
Reads bytes from a handle into a buffer.
|
int |
WindowsNativeUtil.ReadFile(long handle,
ByteBuffer buffer,
int len)
Reads bytes from a handle into a buffer.
|
int |
WindowsNativeUtil.ReadFile(long handle,
NativeMemory buffer,
long off,
int len)
Reads bytes from a handle into a buffer.
|
long |
WindowsNativeUtil.ReadFile(long handle,
NativeMemory buffer,
long off,
int len,
long overlapped,
long event)
reads using overlapped mechanism. returns an overlapped pointer that must be feed by calling
WindowsNativeUtil.free(long) after it has been confirmed that the async READ is done by calling GetOverlappedResult. |
int |
LinuxNativeUtil.recvfrom(int fd,
byte[] buffer,
int off,
int len,
int flags,
Sockaddr sockaddr)
The Output parameter sockaddr may be null if you are not interested in this information.
|
int |
LinuxNativeUtil.recvmsg(int fd,
Msghdr msghdr,
int flags)
receive a message on a socket.
|
void |
WindowsNativeUtil.ResetEvent(long handle)
Resets the given event handle.
|
int |
LinuxNativeUtil.sendmsg(int fd,
Msghdr msghdr,
int flags)
send a message on a socket.
|
void |
WindowsNativeUtil.SetEvent(long handle)
Sets a event identified by the handle
|
void |
LinuxNativeUtil.setsockopt(int fd,
int level,
int optname,
byte[] payload)
Sets a custom payload socket option.
|
void |
LinuxNativeUtil.setsockopt(int fd,
int level,
int optname,
int payload)
sets a int socket option.
|
boolean |
WindowsNativeUtil.UnlockFileEx(long handle,
long start,
long len)
returns true if successful false if not.
|
int |
WindowsNativeUtil.WaitForMultipleObjects(long[] handles,
int millis,
boolean waitAll)
Wait for any or all event handles in a handle array.
|
boolean |
WindowsNativeUtil.WaitForSingleObject(long handle,
int millis)
Waits for a single event handle.
|
int |
LinuxNativeUtil.write(int fd,
byte[] buffer,
int off,
int len)
Write to a file descriptor
returns the number of bytes written from the buffer.
|
int |
LinuxNativeUtil.write(int fd,
ByteBuffer buf,
int len)
Write to a file descriptor
returns the number of bytes written from the buffer.
|
int |
LinuxNativeUtil.write(int fd,
NativeMemory mem,
long off,
int len)
Write to a file descriptor
returns the number of bytes written from the buffer.
|
int |
WindowsNativeUtil.WriteFile(long handle,
byte[] buffer,
int off,
int len)
Writes bytes from a Buffer into a handle.
|
int |
WindowsNativeUtil.WriteFile(long handle,
ByteBuffer buffer,
int len)
Writes bytes from a Buffer into a handle.
|
int |
WindowsNativeUtil.WriteFile(long handle,
NativeMemory buffer,
long off,
int len)
Writes bytes from a Buffer into a handle.
|
long |
WindowsNativeUtil.WriteFile(long handle,
NativeMemory buffer,
long off,
int len,
long overlapped,
long event)
writes using overlapped mechanism. returns an overlapped pointer that must be feed by calling
WindowsNativeUtil.free(long) after it has been confirmed that the async WRITE is done by calling GetOverlappedResult. |
Copyright © 2024. All rights reserved.