Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
 public UOPFile()
 {
     m_Header = new UOPGeneralHeader();
     m_Content = new List<UOPIndexBlockHeader>();
 }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
 public UOPFile()
 {
     m_Header  = new UOPGeneralHeader();
     m_Content = new List <UOPIndexBlockHeader>();
 }