/// <summary> /// Create the KLV key /// </summary> /// <param name="reader"></param> public MXFKLV(MXFReader reader) : base(reader) { this.Key = CreateAndValidateKey(reader); this.BER = DecodeBerLength(reader); this.Length = this.BER.Size; this.DataOffset = reader.Position; }
/// <summary> /// Copy constructor /// </summary> /// <param name="reader"></param> public MXFKLV(MXFKLV klv, string name, KeyType type) { this.Offset = klv.Offset; this.Key = klv.Key; this.Key.Name = name; this.Key.Type = type; this.BER = klv.BER; this.Length = klv.Length; this.DataOffset = klv.DataOffset; this.Partition = klv.Partition; }