MCPcopy Create free account
hub / github.com/Tencent/puerts / writeInt32

Function writeInt32

unreal/Puerts/Content/JavaScript/ffi/buffer-ext.js:140–150  ·  view source on GitHub ↗
(buff, val, offset = 0)

Source from the content-addressed store, hash-verified

138}
139
140function writeInt32(buff, val, offset = 0) {
141 val = +val;
142 checkBounds(buff, offset, 3);
143
144 int32Array[0] = val;
145 buff[offset++] = uint8Int32Array[0];
146 buff[offset++] = uint8Int32Array[1];
147 buff[offset++] = uint8Int32Array[2];
148 buff[offset++] = uint8Int32Array[3];
149 return offset;
150}
151
152const uint32Array = new Uint32Array(1);
153const uint8Uint32Array = new Uint8Array(uint32Array.buffer);

Callers

nothing calls this directly

Calls 1

checkBoundsFunction · 0.85

Tested by

no test coverage detected