Пример #1
0
 public void Skip(long n)
 {
     if (ins == null)
     {
         return;
     }
     ins.Skip(n);
 }
Пример #2
0
        public static byte[] ReadFileFromPak(ArrayByte dis, int size,
                                             LPKTable fileTable)
        {
            dis.Skip(fileTable.GetOffSet() - size);
            int fileLength = (int)fileTable.GetFileSize();

            byte[] fileBuff   = new byte[fileLength];
            int    readLength = dis.Read(fileBuff, 0, fileLength);

            if (readLength < fileLength)
            {
                return(null);
            }
            else
            {
                NativeSupport.MakeBuffer(fileBuff, readLength, 0xF7);
                return(fileBuff);
            }
        }