Bedrock.DataPlane.Version (bedrock v0.5.3)
View SourceVersion utilities for Bedrock's MVCC system. Versions are 8-byte big-endian unsigned integers.
Summary
Functions
Adds an integer offset to a version
Compares two versions
Calculates the integer difference between two versions (v1 - v2)
Checks if version is the first version (zero)
Creates a version from a binary representation
Creates a version from a non-negative integer
Increments a version by 1
Checks if first version is newer than second version
Checks if first version is older than second version
Generates a sequence of versions starting from base + 1, base + 2, ..., base + count
Subtracts an integer offset from a version
Converts a version to integer representation
Converts a version to string representation for display
Validates if value is a valid version binary
Creates a zero version (initial version)
Types
@type t() :: binary()
Functions
Adds an integer offset to a version
Compares two versions
Calculates the integer difference between two versions (v1 - v2)
Checks if version is the first version (zero)
Creates a version from a binary representation
@spec from_integer(non_neg_integer()) :: t()
Creates a version from a non-negative integer
Increments a version by 1
Checks if first version is newer than second version
Checks if first version is older than second version
@spec sequence(t(), pos_integer()) :: [t()]
Generates a sequence of versions starting from base + 1, base + 2, ..., base + count
Subtracts an integer offset from a version
@spec to_integer(t()) :: non_neg_integer()
Converts a version to integer representation
Converts a version to string representation for display
Validates if value is a valid version binary
@spec zero() :: t()
Creates a zero version (initial version)