package granary

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Granary_encoding.RowidSource

Order-preserving int64 codec. Byte-wise comparison of encoded values yields the same ordering as Int64.compare on the original int64 values.

Sourceval encode : int64 -> bytes

Encode an int64 to its order-preserving byte representation.

Sourceval decode : bytes -> int64

Decode an order-preserving byte representation back to its int64.