npm.io
4.4.3 • Published 2 weeks ago

@loaders.gl/loader-utils

Licence
MIT
Version
4.4.3
Deps
4
Size
571 kB
Vulns
0
Weekly
0
Stars
841

@loaders.gl/loader-utils

This module contains shared utilities for loaders.gl, a collection of framework-independent 3D and geospatial loaders (parsers).

For documentation please visit the website.

Binary iterator utilities

@loaders.gl/loader-utils includes helpers such as concatenateArrayBuffersAsync that operate over ArrayBuffer, ArrayBufferView, and ArrayBufferLike inputs (including SharedArrayBuffer). These utilities make it easy to normalize streamed binary data before handing it off to loaders. Chunks backed by SharedArrayBuffer or typed array views are copied into standalone ArrayBuffer instances so byte offsets and underlying storage quirks never corrupt concatenated output.

Keywords