mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
save
This commit is contained in:
parent
54777c648a
commit
3fd781ee7b
@ -26,8 +26,10 @@ import (
|
|||||||
// - rlp has 2 data types: List and String (bytes array), and low-level funcs are operate with this types.
|
// - rlp has 2 data types: List and String (bytes array), and low-level funcs are operate with this types.
|
||||||
// - but for convenience and performance - provided higher-level functions (for example for EncodeHash - for []byte of len 32)
|
// - but for convenience and performance - provided higher-level functions (for example for EncodeHash - for []byte of len 32)
|
||||||
// - rlp package doesn't manage memory - and Caller must ensure buffers are big enough.
|
// - rlp package doesn't manage memory - and Caller must ensure buffers are big enough.
|
||||||
// - each Encode method does write to given buffer and return written len
|
//
|
||||||
// - each Parse method does write to given buffer and return written len
|
// Composition:
|
||||||
|
// - each Encode method does write to given buffer and return written len
|
||||||
|
// - each Parse accept position in payload and return new position
|
||||||
//
|
//
|
||||||
// General rules:
|
// General rules:
|
||||||
// - functions to calculate prefix len are fast (and pure). it's ok to call them multiple times during encoding of large object for readability.
|
// - functions to calculate prefix len are fast (and pure). it's ok to call them multiple times during encoding of large object for readability.
|
||||||
|
Loading…
Reference in New Issue
Block a user