View Source Electric.ShapeCache.LogChunker (electric v0.7.7)

Summary

Functions

Add bytes to the current chunk of a given shape - if the chunk exceeds the specified byte size threshold, a new chunk is reset and :threshold_exceeded is returned.

Functions

Link to this function

add_to_chunk(chunk_bytes, total_chunk_size, chunk_bytes_threshold \\ 10_485_760)

View Source
@spec add_to_chunk(bitstring(), non_neg_integer(), non_neg_integer()) ::
  {:ok | :threshold_exceeded, non_neg_integer()}

Add bytes to the current chunk of a given shape - if the chunk exceeds the specified byte size threshold, a new chunk is reset and :threshold_exceeded is returned.

Link to this function

default_chunk_size_threshold()

View Source
@spec default_chunk_size_threshold() :: non_neg_integer()