Skip to content

Commit

Permalink
Merge pull request kaitai-io#21 from generalmimon/kaitai-struct-type-…
Browse files Browse the repository at this point in the history
…parent

Add _parent to KaitaiStruct class
  • Loading branch information
GreyCat authored Dec 7, 2019
2 parents 5ac14a0 + adcb6ab commit 1fee19e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/kaitai/struct/KaitaiStruct.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ public class KaitaiStruct {
* Stream object that this KaitaiStruct-based structure was parsed from.
*/
protected KaitaiStream _io;
protected KaitaiStruct _parent;

public KaitaiStruct(KaitaiStream _io) {
this._io = _io;
}

public KaitaiStream _io() { return _io; }
public KaitaiStruct _parent() { return _parent; }
}

0 comments on commit 1fee19e

Please sign in to comment.