UNPKG

@loaders.gl/loader-utils

Version:

Framework-independent loaders for 3D graphics formats

11 lines 397 B
/** * Convert Buffer to ArrayBuffer * Converts Node.js `Buffer` to `ArrayBuffer` (without triggering bundler to include Buffer polyfill on browser) * @todo better data type */ export declare function toArrayBuffer(buffer: any): any; /** * Convert (copy) ArrayBuffer to Buffer */ export declare function toBuffer(binaryData: ArrayBuffer | Buffer): Buffer; //# sourceMappingURL=buffer.d.ts.map