package biniou
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Streaming utilities (experimental)
This module offers a streaming interface for representing long lists of elements that cannot fit in memory. Stream items are serialized as chunks of configurable length.
Stream format (independent from the biniou serialization format):
( ONE INT64 BYTE* )* ZERO
where INT64
is the length of a chunk (unsigned big-endian 64-bit int), i.e. the number of following BYTE
s. ONE
and ZERO
are the single-byte representations of 1 and 0 and are used to indicate whether the end of the stream is reached.
read_stream of_string ic
creates an OCaml stream from an input channel ic
. The data come in chunks and each chunk is converted from a string to an array by calling of_string
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>