struct BigInt

Overview

monkey patch BigInt to introduce a new class method onto BigInt

Included Modules

Defined in:

extlib.cr

Constructors

Constructor Detail

def self.from_bytes(bytes : Bytes | Array(UInt8)) : BigInt #

converts a slice of bytes in which bytes[0] is the low-order byte of the BigInt and bytes[15] is the high order byte of the BigInt back into the corresponding BigInt This method assumes bytes is little endian


[View source]