Definition at line 18 of file Rlp.php.
◆ decode()
static decode |
( |
string |
$hexVal | ) |
|
|
static |
◆ encode()
static encode |
( |
string |
$val | ) |
|
|
static |
Enecode RLP Hex argument.
- Parameters
-
string | $val | Hex string of value. |
- Returns
- string Hex string. Encoded byte value with RLP prefixes.
- Exceptions
-
Definition at line 43 of file Rlp.php.
Referenced by EthS\rlpVal(), and EthBytes\rlpVal().
◆ getByteLength()
static getByteLength |
( |
int |
$l | ) |
|
|
staticprotected |
- Deprecated:
- ??
- Parameters
-
- Returns
- string uint256 hex value
- Exceptions
-
Definition at line 329 of file Rlp.php.
◆ getByteValueAt()
static getByteValueAt |
( |
string |
$msgData, |
|
|
int |
$pos |
|
) |
| |
|
staticprotected |
◆ getByteValueAtOffsetPos()
static getByteValueAtOffsetPos |
( |
string |
$msgData, |
|
|
int |
$pos |
|
) |
| |
|
static |
ONLY GET THE LAST BYTE
- Parameters
-
- Returns
- int
Definition at line 311 of file Rlp.php.
◆ getLengthInByte()
static getLengthInByte |
( |
string |
$str, |
|
|
int |
$currentPos |
|
) |
| |
|
staticprotected |
- Parameters
-
- Returns
- float|int
Definition at line 340 of file Rlp.php.
◆ getStringLengthAt()
static getStringLengthAt |
( |
string |
$msgData, |
|
|
int |
$pos |
|
) |
| |
|
staticprotected |
- Parameters
-
- Returns
- float|int
Definition at line 297 of file Rlp.php.
◆ paddedLength()
static paddedLength |
( |
int |
$length | ) |
|
|
staticprotected |
- Parameters
-
- Returns
- int
Definition at line 350 of file Rlp.php.
◆ processSingleByteItem()
static processSingleByteItem |
( |
string |
$msgData, |
|
|
RLPCollection |
$rlpCollection, |
|
|
int |
$currentPos |
|
) |
| |
|
staticprotected |
- Parameters
-
string | $msgData | |
\Ethereum\RLP\RlpCollection | $rlpCollection | |
int | $currentPosgth | |
Definition at line 257 of file Rlp.php.
◆ OFFSET_LONG_ITEM
const OFFSET_LONG_ITEM = 183 |
◆ OFFSET_LONG_LIST
const OFFSET_LONG_LIST = 247 |
◆ OFFSET_SHORT_ITEM
const OFFSET_SHORT_ITEM = 128 |
◆ OFFSET_SHORT_LIST
const OFFSET_SHORT_LIST = 192 |
◆ PREF_SELF_CONTAINED
const PREF_SELF_CONTAINED = 127 |
◆ THRESHOLD_LONG
const THRESHOLD_LONG = 110 |
The documentation for this class was generated from the following file: