-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework primitive types and built-ins
- Loading branch information
1 parent
99da98c
commit a59bb17
Showing
11 changed files
with
102 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
//! endian: le | ||
|
||
/// http://formats.kaitai.io/heroes_of_might_and_magic_bmp/index.html | ||
HerosOfMightAndMagicBmp = struct { | ||
magic: u16, | ||
width: u16, | ||
height: u16, | ||
magic: u16le, | ||
width: u16le, | ||
height: u16le, | ||
data: [u8; width * height], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
//! endian: le | ||
|
||
/// https://docs.mongodb.com/manual/reference/method/ObjectId/ | ||
ObjectId = struct { | ||
epoch_time: u32, | ||
machine_id: [u8; 3], // FIXME: should be u24 | ||
process_id: u16, | ||
counter: [u8; 3], // FIXME: should be u24 | ||
epoch_time: u32le, | ||
machine_id: [u8; 3], // FIXME: should be u24le | ||
process_id: u16le, | ||
counter: [u8; 3], // FIXME: should be u24le | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.