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

Method allocaByteFilled

CodenameOne/src/com/codename1/util/Simd.java:136–140  ·  view source on GitHub ↗
(int size, byte value)

Source from the content-addressed store, hash-verified

134 /// Special scratch-allocation API that guarantees every byte starts with the same value while
135 /// retaining the same method-local constraints as `allocaByte(int)`.
136 public byte[] allocaByteFilled(int size, byte value) {
137 byte[] out = allocaByte(size);
138 fillByte(out, value);
139 return out;
140 }
141
142 /// Special scratch-allocation API that guarantees every int starts with the same value while
143 /// retaining the same method-local constraints as `allocaInt(int)`.

Calls 2

allocaByteMethod · 0.95
fillByteMethod · 0.95