MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / allocaByteZeroed

Method allocaByteZeroed

CodenameOne/src/com/codename1/util/Simd.java:112–116  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

110 /// Special scratch-allocation API that guarantees a zero-initialized byte array while retaining
111 /// the same method-local constraints as `allocaByte(int)`.
112 public byte[] allocaByteZeroed(int size) {
113 byte[] out = allocaByte(size);
114 fillByte(out, (byte) 0);
115 return out;
116 }
117
118 /// Special scratch-allocation API that guarantees a zero-initialized int array while retaining
119 /// the same method-local constraints as `allocaInt(int)`.

Calls 2

allocaByteMethod · 0.95
fillByteMethod · 0.95