struct

UVarInt

Inherits Struct < Value < Object

Constructors

new(int : Int::Unsigned)
Source
new(int : BigInt)
Source
new(bytes : Bytes)
Source
new(en : Enumerable(UInt8))
Source
new(str : String)
Source

Class methods

parse(str : String)
Source
read(str : String)
Source
read(io : IO)
Source
read(iter : Iterator(UInt8))
Source

Instance methods

%(other : UVarInt) : UVarInt

for the following operators, define a method that performs that mathematical operation on both operands' int values, and returns a new UVarInt with the new value

Source
&(other : UVarInt) : UVarInt
Source
*(other : UVarInt) : UVarInt
Source
**(other : UVarInt) : UVarInt
Source
+(other : UVarInt) : UVarInt
Source
-(other : UVarInt) : UVarInt
Source
/(other : UVarInt) : UVarInt
Source
<(other : UVarInt)

for the following operators, define a method that performs the logical operation on both operands' int values, and returns a boolean value

Source
<<(other : UVarInt) : UVarInt
Source
<=(other : UVarInt)
Source
<=>(other : UVarInt)
Source
==(other : UVarInt)
Source
>(other : UVarInt)
Source
>=(other : UVarInt)
Source
>>(other : UVarInt) : UVarInt
Source
^(other : UVarInt) : UVarInt
Source
bytes
Source
hexstring
Source
to_big_i
Source
to_f

Returns self converted to Float64.

Source
to_f32

Returns self converted to Float32.

Source
to_f64

Returns self converted to Float64.

Source
to_i

for the following name-type pairs, define a method that is mapped to the method of the same name on the internal BigInt value Returns self converted to Int32.

Source
to_i16

Returns self converted to Int16.

Source
to_i32

Returns self converted to Int32.

Source
to_i64

Returns self converted to Int64.

Source
to_i8

Returns self converted to Int8.

Source
to_s(base : Int32)
Source
to_u

Returns self converted to UInt32.

Source
to_u16

Returns self converted to UInt16.

Source
to_u32

Returns self converted to UInt32.

Source
to_u64

Returns self converted to UInt64.

Source
to_u8

Returns self converted to UInt8.

Source

Macros

[](*args)
Source