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 StreamBookmark WriteAndBookmarkDWORD(UInt32 value) { StreamBookmark bookmark = new StreamBookmark(this.stream); bookmark.CaptureAndWrite(value); this.size += 4; return (bookmark); }