package plebeia

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Segment.SerializationSource

3 Serialization

3 Serialization

Sourceval encode : Segment.t -> string

len/8+1 bytes.

<--- len / 8 + 1 bytes -----------> <--- len bits ------------> +---------------------------+-------+ | segment bits (len bits) |10

,7

| +---------------------------+-------+

At most 7 zeros at tail.

Examples:

data | binary ----------------------------- empty segment | 80 LRLRLRLRL | 5540 LRLRLRLR | 5580 RRRRRRRRRRRRRRRRRRRR | fffff8

Sourceval decode : string -> Segment.t option
Sourceval decode_exn : string -> Segment.t
Sourceval encode_list : Segment.t list -> string
Sourceval decode_list : string -> Segment.t list option
Sourceval decode_list_slice : (string * int) -> (Segment.t list * int) option

slice version