Beispiel #1
0
 public RiffHeader(uint type)
 {
     Type = type;
     HeaderBlockHeader        = new RiffBlockHeader();
     HeaderBlockHeader.FourCC = Reinterpret.FourCC("RIFF", ByteOrder.BigEndian);
     HeaderBlockHeader.Length = 4;
 }
Beispiel #2
0
 /// <summary>
 /// Creates an empty RIFF container file.
 /// </summary>
 /// <param name="type">a fourcc typecode to embed in the header</param>
 public RIFF(string type)
 {
     header = new RiffHeader(Reinterpret.FourCC(type, ByteOrder.BigEndian));
     blocks = new List <RiffBlock>();
 }
Beispiel #3
0
 internal RiffBlock(byte[] resourceData, string fourcc)
 {
     data   = resourceData;
     header = new RiffBlockHeader(Reinterpret.FourCC(fourcc, ByteOrder.BigEndian), data.Length);
 }