MCPcopy Index your code
hub / github.com/davidgiven/luje / wrap

Method wrap

lib/java/nio/ByteBuffer.java:81–83  ·  view source on GitHub ↗

Creates a new byte buffer by wrapping the given byte array. Calling this method has the same effect as wrap(array, 0, array.length). @param array the byte array which the new buffer will be based on @return the created byte buffer.

(byte[] array)

Source from the content-addressed store, hash-verified

79 * @return the created byte buffer.
80 */
81 public static ByteBuffer wrap(byte[] array) {
82 return BufferFactory.newByteBuffer(array);
83 }
84
85 /**
86 * Creates a new byte buffer by wrapping the given byte array.

Callers 2

StringMethod · 0.95
isLegalReplacementMethod · 0.95

Calls 1

newByteBufferMethod · 0.95

Tested by

no test coverage detected