Uses of Class
java.nio.Buffer
Packages that use Buffer
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
-
Uses of Buffer in java.lang.foreign
Methods in java.lang.foreign with parameters of type BufferModifier and TypeMethodDescriptionstatic MemorySegmentCreates a memory segment that is backed by the same region of memory that backs the givenBufferinstance. -
Uses of Buffer in java.nio
Modifier and TypeClassDescriptionclassA byte buffer.classA char buffer.classA double buffer.classA float buffer.classAn int buffer.classA long buffer.classA direct byte buffer whose content is a memory-mapped region of a file.classA short buffer.Modifier and TypeMethodDescriptionBuffer.clear()Clears this buffer.abstract BufferBuffer.duplicate()Creates a new buffer that shares this buffer's content.Buffer.flip()Flips this buffer.Buffer.limit(int newLimit) Sets this buffer's limit.Buffer.mark()Sets this buffer's mark at its position.Buffer.position(int newPosition) Sets this buffer's position.Buffer.reset()Resets this buffer's position to the previously-marked position.Buffer.rewind()Rewinds this buffer.abstract BufferBuffer.slice()Creates a new buffer whose content is a shared subsequence of this buffer's content.abstract BufferBuffer.slice(int index, int length) Creates a new buffer whose content is a shared subsequence of this buffer's content.