mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: more compression
This commit is contained in:
1 parent
afe041f969
commit
1575b803c0
11 files changed
+135
-59
No files matched your search
+11
-2
@@ -22,6 +22,7 @@ struct String {
|
||||
|
||||
- Everything is little endian
|
||||
- Magic is always `"BKON"`
|
||||
- The index of fast strings must be read as mentioned by the fast string format
|
||||
|
||||
```cpp
|
||||
struct BlitzkriegObjectNotation {
|
||||
@@ -38,11 +39,19 @@ struct BlitzkriegObjectNotation {
|
||||
```cpp
|
||||
struct Header {
|
||||
uint16 version;
|
||||
FastStringFormat fastStringFormat;
|
||||
StringTable stringTable;
|
||||
}
|
||||
|
||||
// read as uint8
|
||||
enum FastStringFormat {
|
||||
Format8,
|
||||
Format16,
|
||||
Format32,
|
||||
}
|
||||
|
||||
struct StringTable {
|
||||
uint16 count;
|
||||
(uint8 | uint16 | uint32) count;
|
||||
String[count] strings;
|
||||
}
|
||||
```
|
||||
@@ -142,7 +151,7 @@ struct ValueString {
|
||||
|
||||
struct ValueFastString {
|
||||
ValueType.FastString type;
|
||||
uint16 index;
|
||||
(uint8 | uint16 | uint32) index;
|
||||
}
|
||||
|
||||
struct ValueArray {
|
||||
|
||||
Reference in new issue
Block a user