public void Read(Stream input) { BinaryReader reader = new BinaryReader(input, Encoding.Default, true); hash = reader.ReadUInt64(); name = NameResolver.TryFindName(NameResolver.GetHashFromULong(hash)) + ".gani"; offset = reader.ReadUInt32(); size = reader.ReadInt32(); } //method Read ends
public void Read(Stream input) { BinaryReader reader = new BinaryReader(input, Encoding.Default, true); hash = reader.ReadUInt64(); name = NameResolver.TryFindName(NameResolver.GetHashFromULong(hash)); offset = reader.ReadUInt32(); size = reader.ReadInt16(); size2 = reader.ReadInt16(); size *= 0x10; exChunkSize = reader.ReadInt16() * 0x10; reader.Skip(6); endChunkOffset = reader.ReadUInt32(); reader.Skip(4); } //method Read ends