UNPKG

@phi-ag/rvt

Version:

Parse Revit file format

15 lines (14 loc) 378 B
export class BlobSource { #blob; size; constructor(blob) { this.#blob = blob; this.size = blob.size; } async sliceBytes(start, end) { return new Uint8Array(await this.#blob.slice(start, end).arrayBuffer()); } async sliceView(start, end) { return new DataView(await this.#blob.slice(start, end).arrayBuffer()); } }