class Ruby::Marshal::BigNum

Overview

“l” represents a Bignum which is composed of three parts:

sign A single byte containing “+” for a positive value or “-” for a negative value.

length A long indicating the number of bytes of Bignum data follows, divided by two. Multiply the length by two to determine the number of bytes of data that follow.

data Bytes of Bignum data representing the number.

Defined in:

ruby-marshal/stream_objects/bignum.cr

Constructors

Instance Method Summary

Instance methods inherited from class Ruby::Marshal::StreamObject

size : Int32 size, stream_size stream_size

Constructor methods inherited from class Ruby::Marshal::StreamObject

new(size : Int32) new

Constructor Detail

def self.new(stream : Bytes) #

[View source]

Instance Method Detail

def data : Slice(UInt8) #

[View source]
def length : Ruby::Marshal::Integer #

[View source]
def read(stream : Bytes) #

[View source]
def sign : UInt8 #

[View source]