MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / seekToByte

Method seekToByte

src/misc.ts:414–416  ·  view source on GitHub ↗
(byteOffset: number)

Source from the content-addressed store, hash-verified

412 constructor(public bytes: Uint8Array) {}
413
414 seekToByte(byteOffset: number) {
415 this.pos = 8 * byteOffset;
416 }
417
418 private readBit() {
419 const byteIndex = Math.floor(this.pos / 8);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected