Str
in package
It's a string type instance for ethereum recursive length encoding.
Note: there is only static function in this class.
Tags
Table of Contents
- decodeHex() : string
- Return decoded hex encoded of given input, same with hex2bin
- encode() : string
- Return encoded string of given input and encoding.
Methods
decodeHex()
Return decoded hex encoded of given input, same with hex2bin
public
static decodeHex(string $input) : string
Parameters
- $input : string
-
hex encoded string
Return values
string —decoded of hex encoded string
encode()
Return encoded string of given input and encoding.
public
static encode(string $input[, string $encoding = 'utf8' ]) : string
Parameters
- $input : string
-
input
- $encoding : string = 'utf8'
-
encoding
Return values
string —encoded string of given input and encoding