UNPKG

@svta/common-media-library

Version:
11 lines 345 B
import { readUint } from './readUint.js'; export function readString(dataView, offset, length) { let str = ''; for (let c = 0; c < length; c++) { const cursor = offset + c; const char = readUint(dataView, cursor, 1); str += String.fromCharCode(char); } return str; } //# sourceMappingURL=readString.js.map