Beispiel #1
0
        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;
              }
        }
Beispiel #2
0
 public RiffChunk AddChild(RiffAviFourCCCode code)
 {
     return (new RiffChunk(this.stream, code, this));
 }
Beispiel #3
0
 public void WriteFourCC(RiffAviFourCCCode code)
 {
     WriteBits(RiffAviFourCCCodes.GetCode(code));
 }
Beispiel #4
0
 RiffChunk(Stream stream, RiffAviFourCCCode code)
     : this(stream, code, null)
 {
 }
 public static byte[] GetCode(RiffAviFourCCCode code)
 {
     return (codes[code]);
 }