garythung / inflate-sol

Inflate implementation in Solidity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inflate-sol

An implementation of Puff in Solidity. This decompresses a DEFLATE-compressed data stream.

Installing

TODO

Usage

pragma solidity >=0.8.0 <0.9.0;

import "./InflateLib.sol";

contract InflateLibTest {
    function puff(bytes memory source, uint256 destlen)
        external
        pure
        returns (InflateLib.ErrorCode, bytes memory)
    {
        return InflateLib.puff(source, destlen);
    }
}

About

Inflate implementation in Solidity.

License:Apache License 2.0


Languages

Language:Solidity 92.1%Language:JavaScript 7.9%