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

Function writeUInt32LE

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

Source from the content-addressed store, hash-verified

170}
171
172export function writeUInt32LE(destination: Uint8Array, value: number, offset: number): void {
173 destination[offset + 0] = (value & 0b11111111);
174 value = value >>> 8;
175 destination[offset + 1] = (value & 0b11111111);
176 value = value >>> 8;
177 destination[offset + 2] = (value & 0b11111111);
178 value = value >>> 8;
179 destination[offset + 3] = (value & 0b11111111);
180}
181
182export function readUInt8(source: Uint8Array, offset: number): number {
183 return source[offset];

Callers 1

writeUInt32LEMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected