protected override void ReadChunk(IntPtr ptr, int chunkSize, string chunkType) { switch (chunkType) { case "insh": Header = Marshal.PtrToStructure <CK_INSH>(ptr); break; default: throw new Exception(string.Format("Unknown ChunkType [{0}]", chunkType)); } }
protected override void LoadChunk(IntPtr ptr, string type, uint size) { switch (type) { case "insh": Header = Marshal.PtrToStructure <CK_INSH>(ptr); break; default: throw new Exception("[INS_]Unknown ChunkType"); } }