File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,12 @@ class SubsegmentOffsets:
290
290
offsets : List [int ]
291
291
292
292
293
+ @dataclass
294
+ class NamedData :
295
+ key : str
296
+ segment_index : int
297
+
298
+
293
299
@dataclass
294
300
class Program :
295
301
version : int
@@ -299,3 +305,4 @@ class Program:
299
305
segments : List [DataSegment ]
300
306
constant_segment : SubsegmentOffsets
301
307
mutable_data_segments : Optional [List [SubsegmentOffsets ]] = None
308
+ named_data : Optional [List [NamedData ]] = None
Original file line number Diff line number Diff line change @@ -431,6 +431,16 @@ table SubsegmentOffsets {
431
431
offsets: [uint64];
432
432
}
433
433
434
+ // Attributes a name to data referenced by Program.segments. Typically used
435
+ // when data is referenced by multiple users.
436
+ table NamedData {
437
+ // The unique id of the data blob.
438
+ key: string;
439
+
440
+ // Index of the segment in Program.segments
441
+ segment_index: uint32;
442
+ }
443
+
434
444
table Program {
435
445
// Schema version.
436
446
version: uint;
@@ -468,6 +478,10 @@ table Program {
468
478
// constant memory, copying it over, and then being unable to release the
469
479
// constant segment. No two elements should point to the same segment.
470
480
mutable_data_segments: [SubsegmentOffsets];
481
+
482
+ // [Optional] List of blobs keyed by a name. Stored in segments attached to
483
+ // the PTE file.
484
+ named_data: [NamedData];
471
485
}
472
486
473
487
root_type Program;
You can’t perform that action at this time.
0 commit comments