MCPcopy Create free account
hub / github.com/ReadyTalk/avian / allocate

Method allocate

classpath/java/nio/ByteBuffer.java:23–25  ·  view source on GitHub ↗
(int capacity)

Source from the content-addressed store, hash-verified

21 }
22
23 public static ByteBuffer allocate(int capacity) {
24 return new ArrayByteBuffer(new byte[capacity], 0, capacity, false);
25 }
26
27 public static ByteBuffer allocateDirect(int capacity) {
28 return FixedArrayByteBuffer.make(capacity);

Callers 4

allocateMethod · 0.95
mainMethod · 0.95
testMethod · 0.95
SendServerClass · 0.95

Calls

no outgoing calls

Tested by 3

allocateMethod · 0.76
mainMethod · 0.76
testMethod · 0.76