Commit Graph

19 Commits

Author SHA1 Message Date
9c3294ebcb Rustfmt 2019-04-29 14:06:41 -04:00
7a8cf71285 Add a TODO 2019-04-29 14:06:16 -04:00
4b6e5181b2 Add Default as a required trait
I could make KStruct require `fn new`, but what I really want already exists.
2019-04-29 14:05:03 -04:00
01d42890f6 Now have a structure that actually works 2019-04-26 16:08:55 -04:00
0835e4bc26 Still working with the borrow checker 2019-04-24 17:13:34 -04:00
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
1cec9a0fe6 Basic PoC for read_bytes
Mostly just needed to reassure myself that the lifetimes work.
2019-04-23 15:34:00 -04:00
cf92d98671 Fix compiler warnings 2019-04-23 13:29:31 -04:00
5343ac0396 Make sure the unit struct actually compiles 2019-04-23 13:25:38 -04:00
10b7219633 Add a unit type for KStruct 2019-04-23 13:17:42 -04:00
a079b75c6e Remove bad docs, make parent a KStruct 2019-04-23 13:02:31 -04:00
9723f0b12d Read everything as byte slices
Zero-copy baby.
2019-04-22 17:57:00 -04:00
d8f783e85d Use names more similar to C++ runtime 2019-04-22 15:46:18 -04:00
f9ae7b76cb Add an UnknownEnum error type, make KaitaiStruct optional for parents 2019-04-22 12:01:01 -04:00
7d297b884a Rustfmt 2019-04-18 11:31:33 -04:00
5c5d84a57b Final cleanup?
Need to spec out the process and zlib methods, but otherwise looks decent
2019-04-16 18:32:29 -04:00
79f9039c7e Not quite compiling, but getting better 2019-04-16 17:40:22 -04:00
af5bd80034 Minor cleanup 2019-04-16 14:55:24 -04:00
bfeb073143 Initial draft for the Kaitai API 2019-04-16 14:53:53 -04:00