public static UOPFile FromBinary(System.IO.BinaryReader bStream) { UOPFile toReturn = new UOPFile(); toReturn.m_Header = UOPGeneralHeader.FromBinary(bStream); bool repeatRead = true; while (repeatRead) { UOPIndexBlockHeader uopIBHCurrent = UOPIndexBlockHeader.FromBinary(bStream); toReturn.m_Content.Add(uopIBHCurrent); if (uopIBHCurrent.m_OffsetNextIndex == 0) { repeatRead = false; } else { bStream.BaseStream.Seek((long)(uopIBHCurrent.m_OffsetNextIndex), System.IO.SeekOrigin.Begin); } } return(toReturn); }
public static UOPGeneralHeader FromBinary(System.IO.BinaryReader bStream) { UOPGeneralHeader toReturn = new UOPGeneralHeader(); toReturn.m_variousData = bStream.ReadBytes(24); toReturn.m_totalIndex = bStream.ReadUInt32(); toReturn.m_Unknown = bStream.ReadBytes(12); return(toReturn); }
public override bool Equals(object obj) { if (!obj.GetType().Equals(this.GetType())) { return(false); } UOPGeneralHeader objCurrent = (UOPGeneralHeader)obj; return((m_totalIndex == objCurrent.m_totalIndex) && Array.Equals(m_Unknown, objCurrent.m_Unknown) && Array.Equals(m_variousData, objCurrent.m_variousData)); }
public UOPFile() { m_Header = new UOPGeneralHeader(); m_Content = new List<UOPIndexBlockHeader>(); }
public static UOPGeneralHeader FromBinary(System.IO.BinaryReader bStream) { UOPGeneralHeader toReturn = new UOPGeneralHeader(); toReturn.m_variousData = bStream.ReadBytes(24); toReturn.m_totalIndex = bStream.ReadUInt32(); toReturn.m_Unknown = bStream.ReadBytes(12); return toReturn; }
public UOPFile() { m_Header = new UOPGeneralHeader(); m_Content = new List <UOPIndexBlockHeader>(); }