public MXFEntryPrimer(MXFReader reader) : base(reader) { this.Offset = reader.Position; this.LocalTag = reader.ReadUInt16(); this.AliasUID = new MXFAUID(reader, "AliasUID"); this.Length = 20; // Fixed length (16 bytes key + 4 bytes local tag) }
/// <summary> /// Reads a list of AUIDs and returns a MXFObject containing the AUIDs as children /// </summary> /// <param name="groupName">The name of the MXFObject acting as group container</param> /// <param name="singleItem">The name of the single items</param> public MXFObject ReadAUIDSet(string groupName, string singleItem) { UInt32 nofItems = this.ReadUInt32(); UInt32 objectSize = this.ReadUInt32(); // TODO useless size of objects, always 16 according to specs MXFObject auidGroup = new MXFNamedObject(groupName, this.Position, objectSize); if (nofItems < UInt32.MaxValue) { for (int n = 0; n < nofItems; n++) { MXFAUID auid = new MXFAUID(this, singleItem); auidGroup.AddChild(auid); } } return(auidGroup); }