class VarInt::LEB128

Direct Known Subclasses

Defined in:

varint/leb128.cr

Class Method Summary

Class Method Detail

def self.decode_unsigned_bigint(io : IO) #

[View source]
def self.decode_unsigned_int(bytes : Bytes) : Tuple(UInt64, UInt32) #

[View source]
def self.decode_unsigned_int(io : IO) : Tuple(UInt64, UInt32) #

[View source]
def self.do_encode_unsigned(i : UInt | BigInt, &) #

Unsigned integers


[View source]
def self.encode(i : UInt, io : IO) #

[View source]
def self.encode(i : UInt) #

[View source]
def self.encode(i : SInt) : Array(UInt8) #

Signed integers


[View source]
def self.encode(f : Float64) : Array(UInt8) #

[View source]
def self.encode_float64(f : Float64) : Array(UInt8) #

[View source]
def self.encode_signed(i : SInt | BigInt) : Array(UInt8) #

[View source]
def self.encode_unsigned(i : UInt | BigInt, io : IO) #

[View source]
def self.encode_unsigned(i : UInt | BigInt) : Array(UInt8) #

[View source]
def self.float64_to_vfloat(f : Float64) #

[View source]