Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferedEncoder ¶
func NewBufferedEncoder ¶
func NewBufferedEncoder() BufferedEncoder
type LazySlice ¶
type LazySlice[T any] struct { // contains filtered or unexported fields }
Items are stored contiguously in a data slice, with an indexes slice marking each item’s start offset. The data is encoded using CBOR and deserialized into type T on demand. Example:
data: [00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19] - ----- -------- -------------- - ↑ ↑ ↑ ↑ indexes: [10 12 15] 20 (len(data))
Click to show internal directories.
Click to hide internal directories.