RiffChunk(Stream stream, RiffAviFourCCCode code, RiffChunk parent) { this.stream = stream; WriteBits(RiffAviFourCCCodes.GetCode(code)); bookmark = new StreamBookmark(this.stream); bookmark.CaptureAndWrite(0); size = 0; this.parentChunk = parent; if (this.parentChunk != null) { this.parentChunk.size += 8; } }
public RiffChunk AddChild(RiffAviFourCCCode code) { return (new RiffChunk(this.stream, code, this)); }
public void WriteFourCC(RiffAviFourCCCode code) { WriteBits(RiffAviFourCCCodes.GetCode(code)); }
RiffChunk(Stream stream, RiffAviFourCCCode code) : this(stream, code, null) { }
public static byte[] GetCode(RiffAviFourCCCode code) { return (codes[code]); }