module Comandante::Bits::Conversions(U, I)

Overview

For conversion Int/Uint

Defined in:

comandante/bits.cr

Class Method Summary

Class Method Detail

def self.store_as_int(n : U) : I #

Stores uint in int so we can serialize/store in places where uint is not supported


[View source]
def self.store_as_uint(n : I) : U #

Stores int as uint for conversion serialize/store in places where uint is not supported


[View source]