feat: complete bkon

This commit is contained in:
TrèsAbhi committed 2024-02-04 21:10:44 -06:00
1 parent 2951ccdad5
commit 6753cedd33
2 files changed
+162 -22

No files matched your search

+4 -7
View File
@@ -35,8 +35,7 @@ struct Header {
}
struct StringTable {
uint32 count;
uint32[count] ids;
uint16 count;
String[count] strings;
}
```
@@ -44,13 +43,11 @@ struct StringTable {
### Body
```cpp
// identical to ValueObject except with no type
struct Body {
uint32 count;
(ValueString | ValueFastString)[count] keys;
Value[count] values;
Value object;
}
// read as uint8
enum ValueType {
Null,
Boolean,
@@ -138,7 +135,7 @@ struct ValueString {
struct ValueFastString {
ValueType.FastString type;
uint32 id;
uint16 index;
}
struct ValueArray {