Commit Graph

14 Commits (442b5c4006a3edc4d571ad80938c573ecbef086c)

Author SHA1 Message Date
Bradlee Speice 442b5c4006 Explicit lifetime for `self`
Because we give a reference to ourselves out to children as `_parent`,
we can't use an anonymous lifetime
2019-04-23 17:46:21 -04:00
Bradlee Speice 1cec9a0fe6 Basic PoC for `read_bytes`
Mostly just needed to reassure myself that the lifetimes work.
2019-04-23 15:34:00 -04:00
Bradlee Speice cf92d98671 Fix compiler warnings 2019-04-23 13:29:31 -04:00
Bradlee Speice 5343ac0396 Make sure the unit struct actually compiles 2019-04-23 13:25:38 -04:00
Bradlee Speice 10b7219633 Add a unit type for KStruct 2019-04-23 13:17:42 -04:00
Bradlee Speice a079b75c6e Remove bad docs, make parent a KStruct 2019-04-23 13:02:31 -04:00
Bradlee Speice 9723f0b12d Read everything as byte slices
Zero-copy baby.
2019-04-22 17:57:00 -04:00
Bradlee Speice d8f783e85d Use names more similar to C++ runtime 2019-04-22 15:46:18 -04:00
Bradlee Speice f9ae7b76cb Add an UnknownEnum error type, make KaitaiStruct optional for parents 2019-04-22 12:01:01 -04:00
Bradlee Speice 7d297b884a Rustfmt 2019-04-18 11:31:33 -04:00
Bradlee Speice 5c5d84a57b Final cleanup?
Need to spec out the process and zlib methods, but otherwise looks decent
2019-04-16 18:32:29 -04:00
Bradlee Speice 79f9039c7e Not quite compiling, but getting better 2019-04-16 17:40:22 -04:00
Bradlee Speice af5bd80034 Minor cleanup 2019-04-16 14:55:24 -04:00
Bradlee Speice bfeb073143 Initial draft for the Kaitai API 2019-04-16 14:53:53 -04:00