MCPcopy Create free account
hub / github.com/davidgiven/luje / newByteBuffer

Method newByteBuffer

lib/java/nio/BufferFactory.java:37–39  ·  view source on GitHub ↗

Returns a new byte buffer based on the specified byte array. @param array The byte array @return A new byte buffer based on the specified byte array.

(byte array[])

Source from the content-addressed store, hash-verified

35 * @return A new byte buffer based on the specified byte array.
36 */
37 public static ByteBuffer newByteBuffer(byte array[]) {
38 return new ReadWriteHeapByteBuffer(array);
39 }
40
41 /**
42 * Returns a new array based byte buffer with the specified capacity.

Callers 2

allocateMethod · 0.95
wrapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected