Exemplo n.º 1
0
    public void Decompress(int px, int py, int pz, int lod)
    {
        if (IsHollow() || IsHitCache(px, py, pz, lod))
        {
            return;
        }

        unzippedDataLen = LZ4.LZ4_uncompress_unknownOutputSize(zippedDataBuffer, unzippedDataBuffer, zippedDataLen, unzippedDataBuffer.Length);
        if (unzippedDataLen < 0)
        {
            Debug.LogError("[VFDATAReader]Failed to decompress vfdata." + "@" + px + py + pz + lod);
        }
        else
        {
            unzippedDataDesc.x = px;
            unzippedDataDesc.y = py;
            unzippedDataDesc.z = pz;
            unzippedDataDesc.w = lod;
        }
    }