v3 with more features
This commit is contained in:
parent
f3c87e1c84
commit
5cb7062d4e
6 changed files with 178 additions and 27 deletions
|
|
@ -1,8 +1,13 @@
|
|||
import { $ } from "bun";
|
||||
import * as fs from "fs/promises";
|
||||
|
||||
const dumps = ["EAMqERIGc29waGllGgcjZDlhMmMy", "16, 3, 42, 9, 10, 5, 76, 111, 98, 98, 121, 16, 4, 42, 8, 10, 4, 116, 101, 115, 116, 16, 1, 42, 20, 10, 16, 83, 111, 109, 101, 111, 110, 101, 32, 112, 114, 97, 99, 116, 105, 115, 101, 16, 1 "].map(
|
||||
(z) => {
|
||||
const realdumps: number[][] | string[] = []
|
||||
|
||||
const dumps = realdumps.map(
|
||||
(z) =>{
|
||||
if(Array.isArray(z)) {
|
||||
return new Uint8Array(z);
|
||||
}
|
||||
if(z.includes(",")) {
|
||||
return new Uint8Array(z.split(",").map(z=>+z))
|
||||
} else {
|
||||
|
|
@ -14,5 +19,6 @@ const dumps = ["EAMqERIGc29waGllGgcjZDlhMmMy", "16, 3, 42, 9, 10, 5, 76, 111, 98
|
|||
for await (const dump of dumps) {
|
||||
await fs.writeFile("dump", new Uint8Array(dump.buffer));
|
||||
const info = await $`~/.local/bin/protobuf_inspector < dump`;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue