Readonly
decodedReadonly
encodedReadonly
profileProfile for encoding/decoding structures.
Returns the bigint representation of the encoded data in the RLP instance.
The bigint representation of the encoded data.
Returns the encoded data as a Uint8Array.
The encoded data.
Returns the number representation of the encoded data in the RLP instance.
The number representation of the encoded data.
Returns the decoded unpacked object.
Decoded unpacked object.
Compares the current RLP instance with another RLP instance.
The RLP instance to compare.
0 if the RLP instances are equal, -1/1 if they are not.
Relies on compareTo to check if the RLP instances are equal.
The RLP instance to compare.
true if the RLP instances are equal, false otherwise.
Static
ofStatic
ofStatic
ofCreates an RLPProfiler instance from a valid object.
Object to be encoded.
RLPProfiler instance.
Static
ofDecodes an object following the provided profile.
Data to be decoded.
Profile for encoding/decoding structures.
Protected
Static
packHandles the RLP packing of data. Recursively processes through object properties or array elements to prepare data for RLP encoding.
The object data to be packed.
Profile for encoding structures.
Encoding context for error tracing.
Packed data as RLPInput.
Protected
Static
unpackHandles the RLP unpacking of data. Recursively processes through packed properties or elements to prepare data post RLP decoding.
The packed data to be unpacked.
Profile for decoding structures.
Decoding context for error tracing.
Unpacked data as RLPValueType.
Class handling the profiling of RLP encoded/decoded objects. Provides methods to encode and decode objects based on a provided RLP profile.