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

Function writeInt16

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

Source from the content-addressed store, hash-verified

86}
87
88function writeInt16(buff, val, offset = 0) {
89 val = +val;
90 checkBounds(buff, offset, 1);
91
92 int16Array[0] = val;
93 buff[offset++] = uInt8Int6Array[0];
94 buff[offset++] = uInt8Int6Array[1];
95 return offset;
96}
97
98const uint16Array = new Uint16Array(1);
99const uint8Uint16Array = new Uint8Array(uint16Array.buffer);

Callers

nothing calls this directly

Calls 1

checkBoundsFunction · 0.85

Tested by

no test coverage detected