struct UVarInt
- UVarInt
- Struct
- Value
- Object
Defined in:
uvarint.crConstructors
- .new(int : Int::Unsigned)
- .new(int : BigInt)
- .new(bytes : Bytes)
- .new(en : Enumerable(UInt8))
- .new(str : String)
Class Method Summary
Instance Method Summary
-
#%(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
- #&(other : UVarInt) : UVarInt
- #*(other : UVarInt) : UVarInt
- #**(other : UVarInt) : UVarInt
- #+(other : UVarInt) : UVarInt
- #-(other : UVarInt) : UVarInt
- #/(other : UVarInt) : UVarInt
-
#<(other : UVarInt)
for the following operators, define a method that performs the logical operation on both operands' int values, and returns a boolean value
- #<<(other : UVarInt) : UVarInt
- #<=(other : UVarInt)
- #<=>(other : UVarInt)
- #==(other : UVarInt)
- #>(other : UVarInt)
- #>=(other : UVarInt)
- #>>(other : UVarInt) : UVarInt
- #^(other : UVarInt) : UVarInt
- #bytes : Slice(UInt8)
- #hexstring
- #to_big_i : BigInt
-
#to_f : Float64
Returns self converted to Float64.
-
#to_f32 : Float32
Returns self converted to Float32.
-
#to_f64 : Float64
Returns self converted to Float64.
-
#to_i : Int32
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.
-
#to_i16 : Int16
Returns self converted to Int16.
-
#to_i32 : Int32
Returns self converted to Int32.
-
#to_i64 : Int64
Returns self converted to Int64.
-
#to_i8 : Int8
Returns self converted to Int8.
- #to_s(base : Int32)
-
#to_u : UInt32
Returns self converted to UInt32.
-
#to_u16 : UInt16
Returns self converted to UInt16.
-
#to_u32 : UInt32
Returns self converted to UInt32.
-
#to_u64 : UInt64
Returns self converted to UInt64.
-
#to_u8 : UInt8
Returns self converted to UInt8.
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
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
for the following operators, define a method that performs the logical operation on both operands' int values, and returns a boolean value
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.