feat: uhh

This commit is contained in:
TrèsAbhi committed 2023-12-09 15:56:25 -06:00
1 parent fdf77a43cb
commit 4c2f6bea25
7 files changed
+136 -56

No files matched your search

+1 -3
View File
@@ -1,5 +1,4 @@
import { crc32 } from 'crc';
import { readFile } from 'fs/promises';
import { decodeBlock } from 'lz4';
/**
@@ -7,8 +6,7 @@ import { decodeBlock } from 'lz4';
*
* https://github.com/Maddoxkkm/dvpl_converter/
*/
export async function readDVPL(file: string) {
const buffer = await readFile(file);
export function readDVPL(buffer: Buffer) {
const footerBuffer = buffer.subarray(buffer.length - 20, buffer.length);
if (