Uses of Class
java.nio.ByteBuffer
Packages that use ByteBuffer
Package
Description
A Java API for Stream Control Transport Protocol.
Provides classes that are fundamental to the design of the Java
programming language.
Classes to support module descriptors and creating configurations of modules
by means of resolution and service binding.
HTTP Client and WebSocket APIs
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
Defines charsets, decoders, and encoders, for translating between
bytes and Unicode characters.
Interfaces and classes providing access to file and file system attributes.
Provides the classes and interfaces for the security framework.
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Provides classes for reading and writing the standard ZIP and GZIP file
formats.
Provides the classes and interfaces for cryptographic
operations.
Provides classes for the secure socket package.
Java™ Smart Card I/O API.
Classes to support low-level and efficient foreign memory/function access, directly from Java.
Incubating Feature. Will be removed in a future release.
-
Uses of ByteBuffer in com.sun.nio.sctp
Methods in com.sun.nio.sctp that return ByteBufferModifier and TypeMethodDescriptionabstract ByteBufferSendFailedNotification.buffer()Returns the data that was to be sent.Methods in com.sun.nio.sctp with parameters of type ByteBufferModifier and TypeMethodDescriptionabstract <T> MessageInfoSctpChannel.receive(ByteBuffer dst, T attachment, NotificationHandler<T> handler) Receives a message into the given buffer and/or handles a notification.abstract <T> MessageInfoSctpMultiChannel.receive(ByteBuffer buffer, T attachment, NotificationHandler<T> handler) Receives a message and/or handles a notification via this channel.abstract intSctpChannel.send(ByteBuffer src, MessageInfo messageInfo) Sends a message via this channel.abstract intSctpMultiChannel.send(ByteBuffer buffer, MessageInfo messageInfo) Sends a message via this channel. -
Uses of ByteBuffer in java.lang
Methods in java.lang with parameters of type ByteBufferModifier and TypeMethodDescriptionprotected final Class<?>ClassLoader.defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain) -
Uses of ByteBuffer in java.lang.module
Methods in java.lang.module that return types with arguments of type ByteBufferModifier and TypeMethodDescriptiondefault Optional<ByteBuffer>Reads a resource, returning a byte buffer with the contents of the resource.Methods in java.lang.module with parameters of type ByteBufferModifier and TypeMethodDescriptionstatic ModuleDescriptorModuleDescriptor.read(ByteBuffer bb) Reads the binary form of a module declaration from a byte buffer as a module descriptor.static ModuleDescriptorModuleDescriptor.read(ByteBuffer bb, Supplier<Set<String>> packageFinder) Reads the binary form of a module declaration from a byte buffer as a module descriptor.default voidModuleReader.release(ByteBuffer bb) Releases a byte buffer. -
Uses of ByteBuffer in java.net.http
Methods in java.net.http with type parameters of type ByteBufferModifier and TypeMethodDescriptionstatic <S extends Flow.Subscriber<? super List<ByteBuffer>>,T>
HttpResponse.BodyHandler<T>HttpResponse.BodyHandlers.fromSubscriber(S subscriber, Function<? super S, ? extends T> finisher) Returns a response body handler that returns aBodySubscriber<T>obtained fromHttpResponse.BodySubscribers.fromSubscriber(Subscriber, Function), with the givensubscriberandfinisherfunction.static <S extends Flow.Subscriber<? super List<ByteBuffer>>,T>
HttpResponse.BodySubscriber<T>HttpResponse.BodySubscribers.fromSubscriber(S subscriber, Function<? super S, ? extends T> finisher) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber.Methods in java.net.http that return types with arguments of type ByteBufferModifier and TypeMethodDescriptionstatic HttpResponse.BodyHandler<Flow.Publisher<List<ByteBuffer>>>HttpResponse.BodyHandlers.ofPublisher()Returns aBodyHandler<Publisher<List<ByteBuffer>>>that creates aBodySubscriber<Publisher<List<ByteBuffer>>>obtained fromBodySubscribers.ofPublisher().HttpResponse.BodySubscribers.ofPublisher()Returns a response subscriber which publishes the response body through aPublisher<List<ByteBuffer>>.Methods in java.net.http with parameters of type ByteBufferModifier and TypeMethodDescriptiondefault CompletionStage<?>WebSocket.Listener.onBinary(WebSocket webSocket, ByteBuffer data, boolean last) A binary data has been received.default CompletionStage<?>WebSocket.Listener.onPing(WebSocket webSocket, ByteBuffer message) A Ping message has been received.default CompletionStage<?>WebSocket.Listener.onPong(WebSocket webSocket, ByteBuffer message) A Pong message has been received.WebSocket.sendBinary(ByteBuffer data, boolean last) Sends binary data with bytes from the given buffer.WebSocket.sendPing(ByteBuffer message) Sends a Ping message with bytes from the given buffer.WebSocket.sendPong(ByteBuffer message) Sends a Pong message with bytes from the given buffer.Method parameters in java.net.http with type arguments of type ByteBufferModifier and TypeMethodDescriptionstatic HttpRequest.BodyPublisherHttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher) Returns a request body publisher whose body is retrieved from the givenFlow.Publisher.static HttpRequest.BodyPublisherHttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength) Returns a request body publisher whose body is retrieved from the givenFlow.Publisher.static HttpResponse.BodyHandler<Void>HttpResponse.BodyHandlers.fromSubscriber(Flow.Subscriber<? super List<ByteBuffer>> subscriber) Returns a response body handler that returns aBodySubscriber<Void>obtained fromHttpResponse.BodySubscribers.fromSubscriber(Subscriber), with the givensubscriber.static HttpResponse.BodySubscriber<Void>HttpResponse.BodySubscribers.fromSubscriber(Flow.Subscriber<? super List<ByteBuffer>> subscriber) Returns a body subscriber that forwards all response body to the givenFlow.Subscriber. -
Uses of ByteBuffer in java.nio
Subclasses of ByteBuffer in java.nioModifier and TypeClassDescriptionclassA direct byte buffer whose content is a memory-mapped region of a file.Methods in java.nio that return ByteBufferModifier and TypeMethodDescriptionfinal ByteBufferByteBuffer.alignedSlice(int unitSize) Creates a new byte buffer whose content is a shared and aligned subsequence of this buffer's content.static ByteBufferByteBuffer.allocate(int capacity) Allocates a new byte buffer.static ByteBufferByteBuffer.allocateDirect(int capacity) Allocates a new direct byte buffer.abstract ByteBufferByteBuffer.asReadOnlyBuffer()Creates a new, read-only byte buffer that shares this buffer's content.ByteBuffer.clear()Clears this buffer.abstract ByteBufferByteBuffer.compact()Compacts this buffer (optional operation).abstract ByteBufferByteBuffer.duplicate()Creates a new byte buffer that shares this buffer's content.ByteBuffer.flip()Flips this buffer.ByteBuffer.get(byte[] dst) Relative bulk get method.ByteBuffer.get(byte[] dst, int offset, int length) Relative bulk get method.ByteBuffer.get(int index, byte[] dst) Absolute bulk get method.ByteBuffer.get(int index, byte[] dst, int offset, int length) Absolute bulk get method.ByteBuffer.limit(int newLimit) Sets this buffer's limit.ByteBuffer.mark()Sets this buffer's mark at its position.final ByteBufferModifies this buffer's byte order.ByteBuffer.position(int newPosition) Sets this buffer's position.abstract ByteBufferByteBuffer.put(byte b) Relative put method (optional operation).final ByteBufferByteBuffer.put(byte[] src) Relative bulk put method (optional operation).ByteBuffer.put(byte[] src, int offset, int length) Relative bulk put method (optional operation).abstract ByteBufferByteBuffer.put(int index, byte b) Absolute put method (optional operation).ByteBuffer.put(int index, byte[] src) Absolute bulk put method (optional operation).ByteBuffer.put(int index, byte[] src, int offset, int length) Absolute bulk put method (optional operation).ByteBuffer.put(int index, ByteBuffer src, int offset, int length) Absolute bulk put method (optional operation).ByteBuffer.put(ByteBuffer src) Relative bulk put method (optional operation).abstract ByteBufferByteBuffer.putChar(char value) Relative put method for writing a char value (optional operation).abstract ByteBufferByteBuffer.putChar(int index, char value) Absolute put method for writing a char value (optional operation).abstract ByteBufferByteBuffer.putDouble(double value) Relative put method for writing a double value (optional operation).abstract ByteBufferByteBuffer.putDouble(int index, double value) Absolute put method for writing a double value (optional operation).abstract ByteBufferByteBuffer.putFloat(float value) Relative put method for writing a float value (optional operation).abstract ByteBufferByteBuffer.putFloat(int index, float value) Absolute put method for writing a float value (optional operation).abstract ByteBufferByteBuffer.putInt(int value) Relative put method for writing an int value (optional operation).abstract ByteBufferByteBuffer.putInt(int index, int value) Absolute put method for writing an int value (optional operation).abstract ByteBufferByteBuffer.putLong(int index, long value) Absolute put method for writing a long value (optional operation).abstract ByteBufferByteBuffer.putLong(long value) Relative put method for writing a long value (optional operation).abstract ByteBufferByteBuffer.putShort(int index, short value) Absolute put method for writing a short value (optional operation).abstract ByteBufferByteBuffer.putShort(short value) Relative put method for writing a short value (optional operation).ByteBuffer.reset()Resets this buffer's position to the previously-marked position.ByteBuffer.rewind()Rewinds this buffer.abstract ByteBufferByteBuffer.slice()Creates a new byte buffer whose content is a shared subsequence of this buffer's content.abstract ByteBufferByteBuffer.slice(int index, int length) Creates a new byte buffer whose content is a shared subsequence of this buffer's content.static ByteBufferByteBuffer.wrap(byte[] array) Wraps a byte array into a buffer.static ByteBufferByteBuffer.wrap(byte[] array, int offset, int length) Wraps a byte array into a buffer.Methods in java.nio with parameters of type ByteBufferModifier and TypeMethodDescriptionintByteBuffer.compareTo(ByteBuffer that) Compares this buffer to another.intByteBuffer.mismatch(ByteBuffer that) Finds and returns the relative index of the first mismatch between this buffer and a given buffer.ByteBuffer.put(int index, ByteBuffer src, int offset, int length) Absolute bulk put method (optional operation).ByteBuffer.put(ByteBuffer src) Relative bulk put method (optional operation). -
Uses of ByteBuffer in java.nio.channels
Methods in java.nio.channels with parameters of type ByteBufferModifier and TypeMethodDescriptionAsynchronousByteChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.<A> voidAsynchronousByteChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer, ? super A> handler) Reads a sequence of bytes from this channel into the given buffer.AsynchronousFileChannel.read(ByteBuffer dst, long position) Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.abstract <A> voidAsynchronousFileChannel.read(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer, ? super A> handler) Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.AsynchronousSocketChannel.read(ByteBuffer dst) abstract <A> voidAsynchronousSocketChannel.read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) Reads a sequence of bytes from this channel into a subsequence of the given buffers.abstract <A> voidAsynchronousSocketChannel.read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, ? super A> handler) Reads a sequence of bytes from this channel into the given buffer.final <A> voidAsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer, ? super A> handler) abstract intDatagramChannel.read(ByteBuffer dst) Reads a datagram from this channel.final longDatagramChannel.read(ByteBuffer[] dsts) Reads a datagram from this channel.abstract longDatagramChannel.read(ByteBuffer[] dsts, int offset, int length) Reads a datagram from this channel.abstract intFileChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.final longFileChannel.read(ByteBuffer[] dsts) Reads a sequence of bytes from this channel into the given buffers.abstract longFileChannel.read(ByteBuffer[] dsts, int offset, int length) Reads a sequence of bytes from this channel into a subsequence of the given buffers.abstract intFileChannel.read(ByteBuffer dst, long position) Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.intReadableByteChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.longScatteringByteChannel.read(ByteBuffer[] dsts) Reads a sequence of bytes from this channel into the given buffers.longScatteringByteChannel.read(ByteBuffer[] dsts, int offset, int length) Reads a sequence of bytes from this channel into a subsequence of the given buffers.intSeekableByteChannel.read(ByteBuffer dst) Reads a sequence of bytes from this channel into the given buffer.abstract intSocketChannel.read(ByteBuffer dst) final longSocketChannel.read(ByteBuffer[] dsts) abstract longSocketChannel.read(ByteBuffer[] dsts, int offset, int length) abstract SocketAddressDatagramChannel.receive(ByteBuffer dst) Receives a datagram via this channel.abstract intDatagramChannel.send(ByteBuffer src, SocketAddress target) Sends a datagram via this channel.AsynchronousByteChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.<A> voidAsynchronousByteChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer, ? super A> handler) Writes a sequence of bytes to this channel from the given buffer.AsynchronousFileChannel.write(ByteBuffer src, long position) Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.abstract <A> voidAsynchronousFileChannel.write(ByteBuffer src, long position, A attachment, CompletionHandler<Integer, ? super A> handler) Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.AsynchronousSocketChannel.write(ByteBuffer src) abstract <A> voidAsynchronousSocketChannel.write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, ? super A> handler) Writes a sequence of bytes to this channel from a subsequence of the given buffers.abstract <A> voidAsynchronousSocketChannel.write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, ? super A> handler) Writes a sequence of bytes to this channel from the given buffer.final <A> voidAsynchronousSocketChannel.write(ByteBuffer src, A attachment, CompletionHandler<Integer, ? super A> handler) abstract intDatagramChannel.write(ByteBuffer src) Writes a datagram to this channel.final longDatagramChannel.write(ByteBuffer[] srcs) Writes a datagram to this channel.abstract longDatagramChannel.write(ByteBuffer[] srcs, int offset, int length) Writes a datagram to this channel.abstract intFileChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.final longFileChannel.write(ByteBuffer[] srcs) Writes a sequence of bytes to this channel from the given buffers.abstract longFileChannel.write(ByteBuffer[] srcs, int offset, int length) Writes a sequence of bytes to this channel from a subsequence of the given buffers.abstract intFileChannel.write(ByteBuffer src, long position) Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.longGatheringByteChannel.write(ByteBuffer[] srcs) Writes a sequence of bytes to this channel from the given buffers.longGatheringByteChannel.write(ByteBuffer[] srcs, int offset, int length) Writes a sequence of bytes to this channel from a subsequence of the given buffers.intSeekableByteChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer.abstract intSocketChannel.write(ByteBuffer src) final longSocketChannel.write(ByteBuffer[] srcs) abstract longSocketChannel.write(ByteBuffer[] srcs, int offset, int length) intWritableByteChannel.write(ByteBuffer src) Writes a sequence of bytes to this channel from the given buffer. -
Uses of ByteBuffer in java.nio.charset
Methods in java.nio.charset that return ByteBufferModifier and TypeMethodDescriptionfinal ByteBufferConvenience method that encodes a string into bytes in this charset.final ByteBufferCharset.encode(CharBuffer cb) Convenience method that encodes Unicode characters into bytes in this charset.final ByteBufferCharsetEncoder.encode(CharBuffer in) Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.Methods in java.nio.charset with parameters of type ByteBufferModifier and TypeMethodDescriptionfinal CharBufferCharset.decode(ByteBuffer bb) Convenience method that decodes bytes in this charset into Unicode characters.final CharBufferCharsetDecoder.decode(ByteBuffer in) Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.final CoderResultCharsetDecoder.decode(ByteBuffer in, CharBuffer out, boolean endOfInput) Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.protected abstract CoderResultCharsetDecoder.decodeLoop(ByteBuffer in, CharBuffer out) Decodes one or more bytes into one or more characters.final CoderResultCharsetEncoder.encode(CharBuffer in, ByteBuffer out, boolean endOfInput) Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.protected abstract CoderResultCharsetEncoder.encodeLoop(CharBuffer in, ByteBuffer out) Encodes one or more characters into one or more bytes.final CoderResultCharsetEncoder.flush(ByteBuffer out) Flushes this encoder.protected CoderResultCharsetEncoder.implFlush(ByteBuffer out) Flushes this encoder. -
Uses of ByteBuffer in java.nio.file.attribute
Methods in java.nio.file.attribute with parameters of type ByteBufferModifier and TypeMethodDescriptionintUserDefinedFileAttributeView.read(String name, ByteBuffer dst) Read the value of a user-defined attribute into a buffer.intUserDefinedFileAttributeView.write(String name, ByteBuffer src) Writes the value of a user-defined attribute from a buffer. -
Uses of ByteBuffer in java.security
Methods in java.security with parameters of type ByteBufferModifier and TypeMethodDescriptionprotected final Class<?>SecureClassLoader.defineClass(String name, ByteBuffer b, CodeSource cs) Converts aByteBufferinto an instance of classClass, with an optional CodeSource.protected voidMessageDigestSpi.engineUpdate(ByteBuffer input) Update the digest using the specified ByteBuffer.protected voidSignatureSpi.engineUpdate(ByteBuffer input) Updates the data to be signed or verified using the specified ByteBuffer.final voidMessageDigest.update(ByteBuffer input) Update the digest using the specified ByteBuffer.final voidSignature.update(ByteBuffer data) Updates the data to be signed or verified using the specified ByteBuffer. -
Uses of ByteBuffer in java.util
Methods in java.util that return ByteBufferModifier and TypeMethodDescriptionBase64.Decoder.decode(ByteBuffer buffer) Decodes all bytes from the input byte buffer using theBase64encoding scheme, writing the results into a newly-allocated ByteBuffer.Base64.Encoder.encode(ByteBuffer buffer) Encodes all remaining bytes from the specified byte buffer into a newly-allocated ByteBuffer using theBase64encoding scheme.Methods in java.util with parameters of type ByteBufferModifier and TypeMethodDescriptionBase64.Decoder.decode(ByteBuffer buffer) Decodes all bytes from the input byte buffer using theBase64encoding scheme, writing the results into a newly-allocated ByteBuffer.Base64.Encoder.encode(ByteBuffer buffer) Encodes all remaining bytes from the specified byte buffer into a newly-allocated ByteBuffer using theBase64encoding scheme.static BitSetBitSet.valueOf(ByteBuffer bb) Returns a new bit set containing all the bits in the given byte buffer between its position and limit. -
Uses of ByteBuffer in java.util.zip
Methods in java.util.zip with parameters of type ByteBufferModifier and TypeMethodDescriptionintDeflater.deflate(ByteBuffer output) Compresses the input data and fills specified buffer with compressed data.intDeflater.deflate(ByteBuffer output, int flush) Compresses the input data and fills the specified buffer with compressed data.intInflater.inflate(ByteBuffer output) Uncompresses bytes into specified buffer.voidDeflater.setDictionary(ByteBuffer dictionary) Sets preset dictionary for compression.voidInflater.setDictionary(ByteBuffer dictionary) Sets the preset dictionary to the bytes in the given buffer.voidDeflater.setInput(ByteBuffer input) Sets input data for compression.voidInflater.setInput(ByteBuffer input) Sets input data for decompression.voidAdler32.update(ByteBuffer buffer) Updates the checksum with the bytes from the specified buffer.default voidChecksum.update(ByteBuffer buffer) Updates the current checksum with the bytes from the specified buffer.voidCRC32.update(ByteBuffer buffer) Updates the CRC-32 checksum with the bytes from the specified buffer.voidCRC32C.update(ByteBuffer buffer) Updates the CRC-32C checksum with the bytes from the specified buffer. -
Uses of ByteBuffer in javax.crypto
Methods in javax.crypto with parameters of type ByteBufferModifier and TypeMethodDescriptionfinal intCipher.doFinal(ByteBuffer input, ByteBuffer output) Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.protected intCipherSpi.engineDoFinal(ByteBuffer input, ByteBuffer output) Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.protected intCipherSpi.engineUpdate(ByteBuffer input, ByteBuffer output) Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.protected voidMacSpi.engineUpdate(ByteBuffer input) Processesinput.remaining()bytes in the ByteBufferinput, starting atinput.position().protected voidCipherSpi.engineUpdateAAD(ByteBuffer src) Continues a multi-part update of the Additional Authentication Data (AAD).final intCipher.update(ByteBuffer input, ByteBuffer output) Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.final voidMac.update(ByteBuffer input) Processesinput.remaining()bytes in the ByteBufferinput, starting atinput.position().final voidCipher.updateAAD(ByteBuffer src) Continues a multi-part update of the Additional Authentication Data (AAD). -
Uses of ByteBuffer in javax.net.ssl
Methods in javax.net.ssl with parameters of type ByteBufferModifier and TypeMethodDescriptionSSLEngine.unwrap(ByteBuffer src, ByteBuffer dst) Attempts to decode SSL/TLS/DTLS network data into a plaintext application data buffer.SSLEngine.unwrap(ByteBuffer src, ByteBuffer[] dsts) Attempts to decode SSL/TLS/DTLS network data into a sequence of plaintext application data buffers.abstract SSLEngineResultSSLEngine.unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) Attempts to decode SSL/TLS/DTLS network data into a subsequence of plaintext application data buffers.abstract SSLEngineResultSSLEngine.wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) Attempts to encode plaintext bytes from a subsequence of data buffers into SSL/TLS/DTLS network data.SSLEngine.wrap(ByteBuffer[] srcs, ByteBuffer dst) Attempts to encode plaintext bytes from a sequence of data buffers into SSL/TLS/DTLS network data.SSLEngine.wrap(ByteBuffer src, ByteBuffer dst) Attempts to encode a buffer of plaintext application data into SSL/TLS/DTLS network data. -
Uses of ByteBuffer in javax.smartcardio
Methods in javax.smartcardio with parameters of type ByteBufferModifier and TypeMethodDescriptionabstract intCardChannel.transmit(ByteBuffer command, ByteBuffer response) Transmits the command APDU stored in the command ByteBuffer and receives the response APDU in the response ByteBuffer.Constructors in javax.smartcardio with parameters of type ByteBufferModifierConstructorDescriptionCommandAPDU(ByteBuffer apdu) Creates a CommandAPDU from the ByteBuffer containing the complete APDU contents (header and body). -
Uses of ByteBuffer in jdk.incubator.foreign
Methods in jdk.incubator.foreign that return ByteBufferModifier and TypeMethodDescriptionMemorySegment.asByteBuffer()Wraps this segment in aByteBuffer.Methods in jdk.incubator.foreign with parameters of type ByteBufferModifier and TypeMethodDescriptionstatic MemorySegmentMemorySegment.ofByteBuffer(ByteBuffer bb) Creates a new confined buffer memory segment that models the memory associated with the given byte buffer. -
Uses of ByteBuffer in jdk.incubator.vector
Methods in jdk.incubator.vector with parameters of type ByteBufferModifier and TypeMethodDescriptionstatic ByteVectorByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static ByteVectorByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static DoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static DoubleVectorDoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static FloatVectorFloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static FloatVectorFloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static IntVectorIntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static IntVectorIntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static LongVectorLongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static LongVectorLongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static ShortVectorShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo) Loads a vector from a byte buffer starting at an offset into the byte buffer.static ShortVectorShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m) Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.final voidByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.final voidDoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidDoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.final voidFloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidFloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.final voidIntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidIntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.final voidLongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidLongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.final voidShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.abstract voidVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.abstract voidVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<E> m) Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.