View Source ExWal.Models.Block (ex_wal v0.1.1)

A single block in a segment file.

Description

The ExWal.Models.Block module represents a single block in a segment file. It contains information about the offset and size of the block.

Examples

iex> block = %ExWal.Models.Block{offset: 0, size: 1024}
%ExWal.Models.Block{offset: 0, size: 1024}

Struct Fields

  • offset - The offset of the block within the segment file.
  • size - The size of the block in bytes.

Summary

Types

@type t() :: %ExWal.Models.Block{offset: non_neg_integer(), size: non_neg_integer()}