module

Redis::NumericConversions

Helper module for efficient numeric conversions

Class methods

bytes_to_f64(bytes : Bytes | Nil) : Float64

Parse Float64 from Bytes without intermediate allocations

Source
bytes_to_i64(bytes : Bytes | Nil) : Int64

Parse Int64 from Bytes without intermediate allocations

Source
f64_to_bytes(num : Float64) : Bytes

Convert Float64 to Bytes

Source
i64_to_bytes(num : Int64) : Bytes

Convert Int64 to Bytes

Source