Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type
- DefaultBigEndian* = ref object
- one*: uint32
- root*: ref DefaultBigEndian
- parent*: ref RootObj
- proc read*(_: typedesc[DefaultBigEndian], stream: KaitaiStream, root: ref DefaultBigEndian, parent: ref RootObj): owned DefaultBigEndian =
- result = new(DefaultBigEndian)
- let root = if root == nil: result else: root
- result.one = readU4be(stream)
- result.root = root
- result.parent = parent
Advertisement
Add Comment
Please, Sign In to add comment