/** * Create a new holder for a boring record with children, but with * position dependent characteristics */ protected DummyPositionSensitiveRecordWithChildren(byte[] source, int start, int len) { // Just grab the header, not the whole contents _header = new byte[8]; Array.Copy(source, start, _header, 0, 8); _type = LittleEndian.GetUShort(_header, 2); // Find our children _children = Record.FindChildRecords(source, start + 8, len - 8); }
/** * Set things up, and find our more interesting children */ protected Comment2000(byte[] source, int start, int len) { // Grab the header _header = new byte[8]; Array.Copy(source, start, _header, 0, 8); // Find our children _children = Record.FindChildRecords(source, start + 8, len - 8); FindInterestingChildren(); }