public EbmlSig(byte[] sig, string name, ParseFlag flag = ParseFlag.None, EbmlType type = EbmlType.Master) { this.Name = name; this.Type = type; this.Flag = flag; this.sig = sig; this.Signature = new ReadOnlyCollection <byte> (this.sig); this.Sig32 = this.sig[0]; for (var bx = 1; bx < this.sig.Length; ++bx) { this.Sig32 = this.Sig32 << 8 | this.sig[bx]; } }
public EbmlSig(byte[] sig, EbmlType type, string name, ParseFlag flag = ParseFlag.None) : this(sig, name, flag, type) { }