Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- aligned_alloc(int, int) - Static method in class com.github.marschall.nativebytebuffers.Stdlib
-
Calls
calloc()
and wraps the result in aByteBuffer
- AllocationFailedException - Exception in com.github.marschall.nativebytebuffers
-
Signals a memory allocation has failed.
C
- calloc(int) - Static method in class com.github.marschall.nativebytebuffers.Stdlib
-
Calls
calloc()
and wraps the result in aByteBuffer
- close(int) - Static method in class com.github.marschall.nativebytebuffers.Unistd
-
Close a file descriptor.
- com.github.marschall.nativebytebuffers - package com.github.marschall.nativebytebuffers
F
- F_ADD_SEALS - Static variable in class com.github.marschall.nativebytebuffers.FcntlCommands
-
Add the seals given in the bit-mask argument arg to the set of seals of the inode referred to by the file descriptor fd.
- F_GET_SEALS - Static variable in class com.github.marschall.nativebytebuffers.FcntlCommands
-
Return (as the function result) the current set of seals of the inode referred to by fd.
- F_SEAL_FUTURE_WRITE - Static variable in class com.github.marschall.nativebytebuffers.Seals
-
The effect of this seal is similar to
Seals.F_SEAL_WRITE
, but the contents of the file can still be modified via shared writable mappings that were created prior to the seal being set. - F_SEAL_GROW - Static variable in class com.github.marschall.nativebytebuffers.Seals
-
If this seal is set, the size of the file in question cannot be increased.
- F_SEAL_SEAL - Static variable in class com.github.marschall.nativebytebuffers.Seals
-
If this seal is set, any further call to
Fcntl.fcntl(int, int, int)
withFcntlCommands.F_ADD_SEALS
fails with the error EPERM. - F_SEAL_SHRINK - Static variable in class com.github.marschall.nativebytebuffers.Seals
-
If this seal is set, the file in question cannot be reduced in size.
- F_SEAL_WRITE - Static variable in class com.github.marschall.nativebytebuffers.Seals
-
If this seal is set, you cannot modify the contents of the file.
- fcntl(int, int) - Static method in class com.github.marschall.nativebytebuffers.Fcntl
-
Performs one of the operations described below on the open file descriptor fd.
- fcntl(int, int, int) - Static method in class com.github.marschall.nativebytebuffers.Fcntl
-
Performs one of the operations described below on the open file descriptor fd.
- Fcntl - Class in com.github.marschall.nativebytebuffers
-
Allows to manipulate file descriptors
fcntl.h
. - FcntlCommands - Class in com.github.marschall.nativebytebuffers
- free(ByteBuffer) - Static method in class com.github.marschall.nativebytebuffers.Stdlib
-
Calls
free()
on the contents of the givenByteBuffer
. - ftruncate(int, long) - Static method in class com.github.marschall.nativebytebuffers.Unistd
-
Truncate a file to a specified length.
G
- getpagesize() - Static method in class com.github.marschall.nativebytebuffers.Mman
-
Returns the number of bytes in a memory page, where "page" is a fixed-length block, the unit for memory allocation and file mapping performed by
mmap(int, int)
.
M
- malloc(int) - Static method in class com.github.marschall.nativebytebuffers.Stdlib
-
Calls
malloc()
and wraps the result in aByteBuffer
- MAP_32BIT - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Put the mapping into the first 2 Gigabytes of the process address space.
- MAP_ANONYMOUS - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
The mapping is not backed by any file; its contents are initialized to zero.
- MAP_ANONYMOUS - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
-
Map anonymous memory not associated with any specific file.
- MAP_GROWSDOWN - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
This flag is used for stacks.
- MAP_HASSEMAPHORE - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
-
Notify the kernel that the region may contain semaphores and that special handling may be necessary.
- MAP_HUGE_1GB - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Used in conjunction with MAP_HUGETLB to select alternative hugetlb page sizes (1 GB) on systems that support multiple hugetlb page sizes.
- MAP_HUGE_2MB - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Used in conjunction with MAP_HUGETLB to select alternative hugetlb page sizes (2 MB) on systems that support multiple hugetlb page sizes.
- MAP_HUGE_SHIFT - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
More generally, the desired huge page size can be configured by encoding the base-2 logarithm of the desired page size in the six bits at the offset MAP_HUGE_SHIFT.
- MAP_HUGETLB - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Allocate the mapping using "huge pages." See the Linux kernel source file Documentation/vm/hugetlbpage.txt for further information, as well as NOTES, below.
- MAP_LOCKED - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Mark the mmaped region to be locked in the same way as mlock(2).
- MAP_NONBLOCK - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
This flag is meaningful only in conjunction with MAP_POPULATE.
- MAP_NORESERVE - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Do not reserve swap space for this mapping.
- MAP_POPULATE - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Populate (prefault) page tables for a mapping.
- MAP_SHARED - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Share this mapping.
- MAP_SHARED - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
-
Modifications are shared.
- MAP_STACK - Static variable in class com.github.marschall.nativebytebuffers.MmapFlags
-
Allocate the mapping at an address suitable for a process or thread stack.
- memfd_create(String, int) - Static method in class com.github.marschall.nativebytebuffers.Mman
-
Calls
memfd_create()
to create an anonymous file and returns a file descriptor that refers to it. - memfd_secret(int) - Static method in class com.github.marschall.nativebytebuffers.Secretmem
- MemfdCreateFlags - Class in com.github.marschall.nativebytebuffers
- MemoryManagementException - Exception in com.github.marschall.nativebytebuffers
-
Abstract base class for memory management exceptions.
- MFD_ALLOW_SEALING - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
-
Allow sealing operations on this file.
- MFD_CLOEXEC - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
-
Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor.
- MFD_HUGE_16GB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_16MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_1GB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_1MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_256MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_2GB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_2MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_32MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_512KB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_512MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGE_64KB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
-
Used in conjunction with MFD_HUGETLB to select alternative hugetlb page sizes (respectively, 2 MB, 1 GB, ...) on systems that support multiple hugetlb page sizes.
- MFD_HUGE_8MB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
- MFD_HUGETLB - Static variable in class com.github.marschall.nativebytebuffers.MemfdCreateFlags
-
(since Linux 4.14) The anonymous file will be created in the hugetlbfs filesystem using huge pages.
- Mman - Class in com.github.marschall.nativebytebuffers
-
Provides access to memory management using
sys/mman.h
. - mmap(int) - Static method in class com.github.marschall.nativebytebuffers.Mman
-
Calls
mmap()
to create an anonymous shared virtual memory region and creates aByteBuffer
around it. - mmap(int, int) - Static method in class com.github.marschall.nativebytebuffers.Mman
-
Calls
mmap()
to create a virtual memory region and creates aByteBuffer
around it. - mmap(int, int, int) - Static method in class com.github.marschall.nativebytebuffers.Mman
- MmapFlags - Class in com.github.marschall.nativebytebuffers
-
Values that may be passed as the flags argument to
mmap(int, int)
on a Linux system. - MmapFlagsMacOs - Class in com.github.marschall.nativebytebuffers
-
Values that may be passed as the flags argument to
mmap(int, int)
on a macOS system. - munmap(ByteBuffer) - Static method in class com.github.marschall.nativebytebuffers.Mman
-
Calls
munmap()
on the contents of the givenByteBuffer
.
R
- ReleaseFailedException - Exception in com.github.marschall.nativebytebuffers
-
Signals a memory release has failed.
S
- Seals - Class in com.github.marschall.nativebytebuffers
- Secretmem - Class in com.github.marschall.nativebytebuffers
-
Provides access to memfd_secret.
- Stdlib - Class in com.github.marschall.nativebytebuffers
-
Provides access to memory management using
stdlib.h
. - SUPERPAGE_NONE - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
- SUPERPAGE_SIZE_2MB - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
- SUPERPAGE_SIZE_ANY - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
U
- Unistd - Class in com.github.marschall.nativebytebuffers
-
Provides access to file management using
unistd.h
.
V
- VM_FLAGS_SUPERPAGE_NONE - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
- VM_FLAGS_SUPERPAGE_SHIFT - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
- VM_FLAGS_SUPERPAGE_SIZE_2MB - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
- VM_FLAGS_SUPERPAGE_SIZE_ANY - Static variable in class com.github.marschall.nativebytebuffers.MmapFlagsMacOs
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form