module KSUID::Utils
Extended Modules
Defined in:
ksuid/utils.crInstance Method Summary
-
#int_from_bytes(value : String | Bytes) : BigInt
Converts value into a
BigInt
. -
#int_to_bytes(int : Int, bits : Int32, io : IO) : Int32
Writes int into the io using network-ordered (big endian) format.
-
#int_to_bytes(int : Int, bits : Int32 = 32) : Bytes
Converts int into a network-ordered (big endian)
Bytes
.
Instance Method Detail
def int_to_bytes(int : Int, bits : Int32, io : IO) : Int32
#
Writes int into the io using network-ordered (big endian) format.
def int_to_bytes(int : Int, bits : Int32 = 32) : Bytes
#
Converts int into a network-ordered (big endian) Bytes
.