@playcanvas/splat-transform
Version:
Library and CLI tool for 3D Gaussian splat format conversion and transformation
23 lines (22 loc) • 666 B
TypeScript
import { type FileSystem, type Writer } from './file-system';
/**
* A file system that writes files to in-memory buffers.
*
* Useful for generating output without writing to disk, such as when
* creating data for download or further processing.
*
* @example
* ```ts
* const fs = new MemoryFileSystem();
* await writeFile({ filename: 'output.ply', ... }, fs);
*
* // Get the generated data
* const data = fs.results.get('output.ply');
* ```
*/
declare class MemoryFileSystem implements FileSystem {
results: Map<string, Uint8Array>;
createWriter(filename: string): Writer;
mkdir(_path: string): Promise<void>;
}
export { MemoryFileSystem };