Esempio n. 1
0
 // Token: 0x060001BF RID: 447 RVA: 0x00007338 File Offset: 0x00005538
 public unsafe static uint readLZO(Stream input, out byte[] dst, uint expectedSize)
 {
     dst = new byte[expectedSize];
     fixed(byte *ptr = &dst[0])
     {
         return(LZO.decompress(input, ptr, expectedSize));
     }
 }
Esempio n. 2
0
        // Token: 0x060001C0 RID: 448 RVA: 0x00007360 File Offset: 0x00005560
        public unsafe static byte[] readLZO(Stream input, uint expectedSize)
        {
            byte[] array = new byte[expectedSize];
            fixed(byte *ptr = &array[0])
            {
                LZO.decompress(input, ptr, expectedSize);
            }

            return(array);
        }