Documentation

Base128
in package

A base-128 decoder.

Table of Contents

Methods

decode()  : int
encode()  : string

Methods

decode()

public static decode(string $octets) : int
Parameters
$octets : string
Tags
throws
InvalidArgumentException

if the given octets represent a malformed base-128 value or the decoded value would exceed the the maximum integer length

Return values
int

encode()

public static encode(int $value) : string
Parameters
$value : int
Return values
string

        
On this page

Search results