Java ByteBuffer.wrap()

Java ByteBuffer.wrap() is a static method in the Java ByteBuffer class that wraps a byte array into a ByteBuffer, allowing the array to be used for buffer operations without creating a new ByteBuffer. It provides direct access to the underlying array and its contents. Introduced in Java 2007 with Java 7, wrap() is frequently used in I/O operations and when working with memory buffers for efficient data manipulation.

https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html