evseevnn\Cassandra\Protocol\Response\DataStream::bchexdec PHP Method

bchexdec() private method

private bchexdec ( string $hex ) : string
$hex string
return string
    private function bchexdec($hex)
    {
        if (strlen($hex) == 1) {
            return hexdec($hex);
        }
        $remain = substr($hex, 0, -1);
        $last = substr($hex, -1);
        return bcadd(bcmul(16, $this->bchexdec($remain)), hexdec($last));
    }