MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / writeUInt16LE

Function writeUInt16LE

contributes/src/vs/base/common/buffer.ts:138–142  ·  view source on GitHub ↗
(destination: Uint8Array, value: number, offset: number)

Source from the content-addressed store, hash-verified

136}
137
138export function writeUInt16LE(destination: Uint8Array, value: number, offset: number): void {
139 destination[offset + 0] = (value & 0b11111111);
140 value = value >>> 8;
141 destination[offset + 1] = (value & 0b11111111);
142}
143
144export function readUInt32BE(source: Uint8Array, offset: number): number {
145 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected