public fpk_data(BinaryReader br, IO.ByteOrder endian) { valuePairB_a = IO.ReadUInt32(br, endian); valuePairB_b = IO.ReadUInt32(br, endian); if (br.BaseStream.Position < br.BaseStream.Length) { unkPtrC = IO.ReadUInt64(br, endian); unkPtrC_DataSize = IO.ReadUInt64(br, endian); strTableOffset = IO.ReadUInt32(br, endian); valuePairD_b = IO.ReadUInt32(br, endian); valuePairE_a = IO.ReadUInt32(br, endian); valuePairE_b = IO.ReadUInt32(br, endian); isValid = true; } else { isValid = false; } }
public fpk_head(BinaryReader br, IO.ByteOrder endian) { magic = IO.ReadBytes(br, 6, endian); if (Utilz.GetString_ASCII(magic) == magic_str) { _isValidFPK = true; byte[] str_winIdentif = IO.ReadBytes(br, 4, endian); fpk_length = IO.ReadUInt64(br, endian); } else { _isValidFPK = false; } }