class Novika::SmallDecimalSnapshot

Overview

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.

Defined in:

novika/image.cr

Constant Summary

ENDIAN = ["big"]

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.

KLASS_NAME = [Novika::SmallDecimalSnapshot]

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.

PARTS = [{type: "basic", name: value, cls: Int64, onlyif: nil, verify: nil, value: nil}] of Nil

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.

REMAINING = [] of Nil

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class Novika::Snapshot

to_form(assembler : BlockAssembler) to_form

Class methods inherited from class Novika::Snapshot

bit_fields bit_fields

Macros inherited from class Novika::Snapshot

novika_snapshot(name, onlyif = nil, verify = nil, value = nil) novika_snapshot

Constructor Detail

def self.new(form : Decimal) #

Class Method Detail

def self.bit_fields #

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.


Macro Detail

macro novika_block_ref_snapshot(name, onlyif = nil, verify = nil, value = nil) #

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.


macro novika_boolean_snapshot(name, onlyif = nil, verify = nil, value = nil) #

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.


macro novika_color_snapshot(name, onlyif = nil, verify = nil, value = nil) #

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.


macro novika_small_decimal_snapshot(name, onlyif = nil, verify = nil, value = nil) #

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.


macro novika_snapshot(name, onlyif = nil, verify = nil, value = nil) #

Snapshot of a decimal form, small enough to fit into an i64.

Its type is SnapshotType::SmallDecimal.


Instance Method Detail

def __format__ : IO::ByteFormat #

def to_form(assembler) #

def value : Int64 #

Holds the i64 value.


def value=(value : Int64) #

Holds the i64 value.