\base128varint

Base 128 varints - decodes and encodes base128 varints to/from decimal

Summary

Methods
Properties
Constants
__construct()
set_value()
get_value()
hex_to_str()
$modus
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$modus

$modus : 

Type

Methods

__construct()

__construct(integer  $modus) 

Parameters

integer $modus
  • 1=Byte 2=String

set_value()

set_value(  $number) 

Parameters

$number
  • number as decimal Returns the base128 value of an dec value

get_value()

get_value(  $string) 

Returns the dec value of an base128

Parameters

$string

hex_to_str()

hex_to_str(String  $hex) 

Converts hex 2 ascii

Parameters

String $hex
  • the hex string