From 3855e478c017f192aa05046253951d8f5d4a08e7 Mon Sep 17 00:00:00 2001 From: maze Date: Wed, 18 Mar 2026 17:32:53 +0100 Subject: [PATCH] Allow Field to specify its own data --- src/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types.ts b/src/types.ts index 59315fe..6933ab9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -120,6 +120,7 @@ export interface Segment { export interface Field { type: FieldType; name: string; + data?: ArrayBuffer; // Optional raw data for the field (if needed for parsing / serialization) value?: unknown; // Optional value for the field (used for serialization or as a default value) bits?: BitField[]; // Optional array of bit field definitions (for BITS type) length?: number; // Optional length for array types (e.g., BYTES, WORDS)