module KSUID::Utils

Extended Modules

Defined in:

ksuid/utils.cr

Instance Method Summary

Instance Method Detail

def int_from_bytes(value : String | Bytes) : BigInt #

Converts value into a BigInt.


[View source]
def int_to_bytes(int : Int, bits : Int32, io : IO) : Int32 #

Writes int into the io using network-ordered (big endian) format.


[View source]
def int_to_bytes(int : Int, bits : Int32 = 32) : Bytes #

Converts int into a network-ordered (big endian) Bytes.


[View source]