1 2 3 4 5 6 7 8 9 10 11 12 | 1 1 1 | r = require 'restructure' StringRange = new r.Struct string: new r.Pointer(r.uint16, new r.String('length'), lazy: yes, type: 'parent') length: r.uint16 module.exports = new r.Struct version: r.uint32 flags: new r.Reserved(r.uint32) numTags: r.uint32 tags: new r.Array(StringRange, 'numTags') |