feat: code split streams

This commit is contained in:
TrèsAbhi committed 2023-12-25 12:37:37 -06:00
1 parent 510eebd2f4
commit cb87a3067c
9 files changed
+856 -832

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { readDVPLFile } from '../blitz/readDVPLFile';
import { PrimitiveStream } from '../streams/primitive';
export function readDds(buffer: Buffer) {
const stream = new PrimitiveStream(buffer);
const name = stream.consumeAscii(4);
if (name !== 'DDS ') throw new TypeError('Not a DDS file');
}
readDds(
await readDVPLFile(
'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data/3d/Tanks/German/images_pbr/E_100_BC.dx11.dds.dvpl',
),
);