package octez-proto-libs
val string' :
?length_kind:[ `N | `Uint30 | `Uint16 | `Uint8 ] ->
Data_encoding__V1.Encoding.string_json_repr ->
int ->
string Data_encoding.Encoding.t
Encoding of a string whose length does not exceed the specified length.
If length_kind
is set, then it is used to encode the length of the string in a header. If length_kind
is omitted then the length field uses the smallest fixed-width integer that can accommodate the maximum size - e.g., `Uint8
for very short strings, `Uint16
for longer strings, etc.
Attempting to construct a string with a length that is too long causes an Invalid_argument
exception.
val bytes' :
?length_kind:[ `N | `Uint30 | `Uint16 | `Uint8 ] ->
Data_encoding__V1.Encoding.string_json_repr ->
int ->
Bytes.t Data_encoding.Encoding.t
See string'
above.
val bigstring :
?length_kind:[ `N | `Uint30 | `Uint16 | `Uint8 ] ->
?string_json_repr:Data_encoding__V1.Encoding.string_json_repr ->
int ->
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
Data_encoding.Encoding.t
Same as string
but for bigstring
.
val string :
?length_kind:[ `N | `Uint16 | `Uint30 | `Uint8 ] ->
Data_encoding__V1.Encoding.string_json_repr ->
int ->
string Data_encoding.Encoding.t
val bytes :
?length_kind:[ `N | `Uint16 | `Uint30 | `Uint8 ] ->
Data_encoding__V1.Encoding.string_json_repr ->
int ->
Bytes.t Data_encoding.Encoding.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>