public IFFChunk(IFFChunk BaseChunk) { m_Data = BaseChunk.m_Data; Size = BaseChunk.Size; ID = BaseChunk.ID; Type = BaseChunk.Type; }
public IFFChunk(IFFChunk BaseChunk) { m_Parent = BaseChunk.m_Parent; m_Device = BaseChunk.m_Parent.Device; m_Data = BaseChunk.m_Data; Size = BaseChunk.Size; ID = BaseChunk.ID; Type = BaseChunk.Type; }
private void ReadHeader(FileReader Reader) { Type = (IFFChunkTypes)Enum.Parse(typeof(IFFChunkTypes),Reader.ReadString(4).Replace("#","").Replace("\0","")); Size = Reader.ReadUInt32(); ID = Reader.ReadUShort(); Reader.ReadUShort(); //Flags Reader.ReadBytes(64); //Label m_Data = Reader.ReadBytes((int)(Size - 76)); if (!Endian.IsBigEndian) { Array.Reverse(m_Data); //Data is Little Endian, so needs to be reversed. } }
private void ReadHeader(FileReader Reader) { Type = (IFFChunkTypes)Enum.Parse(typeof(IFFChunkTypes), Reader.ReadString(4).Replace("#", "").Replace("\0", "")); Size = Reader.ReadUInt32(); ID = Reader.ReadUShort(); Reader.ReadUShort(); //Flags Reader.ReadBytes(64); //Label m_Data = Reader.ReadBytes((int)(Size - 76)); if (!Endian.IsBigEndian) Array.Reverse(m_Data); //Data is Little Endian, so needs to be reversed. }