Exemplo n.º 1
0
Arquivo: NSO.cs Projeto: wowjinxy/pkNX
 public static byte[] GetDecompressedSegment(BinaryReader br, SegmentHeader h, int sizeCompressed)
 {
     byte[] data = GetCompressedSegment(br, h, sizeCompressed);
     return(LZ4.Decode(data, h.DecompressedSize));
 }
Exemplo n.º 2
0
Arquivo: NSO.cs Projeto: wowjinxy/pkNX
 public static byte[] GetCompressedSegment(BinaryReader br, SegmentHeader h, int sizeCompressed)
 {
     br.BaseStream.Position = h.FileOffset;
     return(br.ReadBytes(sizeCompressed));
 }