Ethereum PHP
PHP interface to Ethereum JSON-RPC API.
RlpItem Class Reference
+ Inheritance diagram for RlpItem:
+ Collaboration diagram for RlpItem:

Public Member Functions

 __construct ($data)
 
 getCharLength ()
 
 get ()
 

Protected Attributes

 $rlpData
 
 $dataStrLength
 
 $paddedStrLength
 

Additional Inherited Members

- Static Public Member Functions inherited from Rlp
static encode (string $val)
 
static decode (string $hexVal)
 
static getByteValueAtOffsetPos (string $msgData, int $pos)
 
- Static Public Member Functions inherited from EthereumStatic
static getMethodSignature ($input)
 
static phpKeccak256 ($string)
 
static sha3 ($string)
 
static isValidFunction ($input)
 
static getDefinition ()
 
static isValidHexQuantity ($str)
 
static isValidHexData ($str)
 
static isValidAddress ($address, $throw=false)
 
static hasHexPrefix ($str)
 
static removeHexPrefix ($str)
 
static ensureHexPrefix ($str)
 
static convertCurrency (float $amount, string $from='wei', string $to='ether')
 
- Public Attributes inherited from Rlp
const THRESHOLD_LONG = 110
 
const PREF_SELF_CONTAINED = 127
 
const OFFSET_SHORT_ITEM = 128
 
const OFFSET_LONG_ITEM = 183
 
const OFFSET_SHORT_LIST = 192
 
const OFFSET_LONG_LIST = 247
 
- Static Protected Member Functions inherited from Rlp
static processSingleByteItem (string $msgData, RLPCollection $rlpCollection, int $currentPos)
 
static getByteValueAt (string $msgData, int $pos)
 
static getStringLengthAt (string $msgData, int $pos)
 
static getByteLength (int $l)
 
static getLengthInByte (string $str, int $currentPos)
 
static paddedLength (int $length)
 

Detailed Description

Definition at line 6 of file RlpItem.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $data)

Definition at line 18 of file RlpItem.php.

Member Function Documentation

◆ get()

get ( )

Definition at line 31 of file RlpItem.php.

References RlpItem\$rlpData.

◆ getCharLength()

getCharLength ( )

Definition at line 26 of file RlpItem.php.

References RlpItem\$paddedStrLength.

Member Data Documentation

◆ $dataStrLength

$dataStrLength
protected

Definition at line 13 of file RlpItem.php.

◆ $paddedStrLength

$paddedStrLength
protected

Definition at line 16 of file RlpItem.php.

Referenced by RlpItem\getCharLength().

◆ $rlpData

$rlpData
protected

Definition at line 10 of file RlpItem.php.

Referenced by RlpItem\get().


The documentation for this class was generated from the following file: