UNPKG

@svta/common-media-library

Version:
10 lines 481 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.readUtf8String = readUtf8String; const dataViewToString_js_1 = require("../../../utils/dataViewToString.js"); function readUtf8String(dataView, offset) { const length = dataView.byteLength - (offset - dataView.byteOffset); return (length > 0) ? (0, dataViewToString_js_1.dataViewToString)(new DataView(dataView.buffer, offset, length)) : ''; } ; //# sourceMappingURL=readUtf8String.js.map