class Novika::FrozenBlock

Overview

Holds all information about a block.

Defined in:

novika/image.cr

Constant Summary

ENDIAN = ["big"]

Holds all information about a block.

KLASS_NAME = [Novika::FrozenBlock]

Holds all information about a block.

PARTS = [{type: "bitfield", name: 2, cls: Novika::FrozenBlock, onlyif: nil, verify: nil}, {type: "basic", name: id, cls: UInt64, onlyif: nil, verify: nil, value: nil}, {type: "group", name: tape, cls: Tape, onlyif: -> do has_tape end, verify: nil, value: nil}, {type: "group", name: dict, cls: Dict, onlyif: -> do has_dict end, verify: nil, value: nil}, {type: "group", name: friends, cls: Friends, onlyif: -> do has_friends end, verify: nil, value: nil}, {type: "basic", name: parent, cls: BlockRefSnapshot | ::Nil, onlyif: -> do has_parent end, verify: nil, value: nil}, {type: "basic", name: prototype, cls: BlockRefSnapshot | ::Nil, onlyif: -> do is_instance end, verify: nil, value: nil}, {type: "string", name: comment, cls: String, onlyif: -> do has_comment end, verify: nil, length: nil, value: nil, encoding: nil}] of Nil

Holds all information about a block.

REMAINING = [] of Nil

Holds all information about a block.

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(id, tape, dict, friends, parent, prototype, comment) #

Class Method Detail

def self.bit_fields #

Holds all information about a block.


Macro Detail

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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


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

Holds all information about a block.


Instance Method Detail

def __format__ : IO::ByteFormat #

def comment : String #

Holds the string comment, if one exists.


def comment=(comment : String) #

Holds the string comment, if one exists.


Holds information about the block's dictionary entries, in case it has non-empty dictionary.


def dict=(dict : Novika::FrozenBlock::Dict) #

Holds information about the block's dictionary entries, in case it has non-empty dictionary.


Holds the information about the block's friends, in case it has some.


def friends=(friends : Novika::FrozenBlock::Friends) #

Holds the information about the block's friends, in case it has some.


def has_comment : Bool #

Whether this block has a comment.


def has_comment=(has_comment : UInt8) #

Whether this block has a comment.


def has_comment=(value : Bool) #

Whether this block has a comment.


def has_dict : Bool #

Whether this block has a dictionary.


def has_dict=(has_dict : UInt8) #

Whether this block has a dictionary.


def has_dict=(value : Bool) #

Whether this block has a dictionary.


def has_friends : Bool #

Whether this block has friends.


def has_friends=(has_friends : UInt8) #

Whether this block has friends.


def has_friends=(value : Bool) #

Whether this block has friends.


def has_parent : Bool #

Whether this block has a parent.


def has_parent=(has_parent : UInt8) #

Whether this block has a parent.


def has_parent=(value : Bool) #

Whether this block has a parent.


def has_tape : Bool #

Whether this block has tape.


def has_tape=(has_tape : UInt8) #

Whether this block has tape.


def has_tape=(value : Bool) #

Whether this block has tape.


def id : UInt64 #

Block identifier (BlockRefSnapshots will refer to this frozen block by this identifier).


def id=(id : UInt64) #

Block identifier (BlockRefSnapshots will refer to this frozen block by this identifier).


def is_instance : Bool #

Whether this block is an instance (its prototype is other than itself).


def is_instance=(is_instance : UInt8) #

Whether this block is an instance (its prototype is other than itself).


def is_instance=(value : Bool) #

Whether this block is an instance (its prototype is other than itself).


def parent : BlockRefSnapshot | Nil #

Holds a ref to the parent block, in case there is a parent.


def parent=(parent : BlockRefSnapshot | Nil) #

Holds a ref to the parent block, in case there is a parent.


def prototype : BlockRefSnapshot | Nil #

Holds a ref to the block's prototype, in case it is different from the block itself.


def prototype=(prototype : BlockRefSnapshot | Nil) #

Holds a ref to the block's prototype, in case it is different from the block itself.


def reserved : UInt8 #

def reserved=(reserved : UInt8) #

Holds information about the block's tape, in case it has non-empty tape.


def tape=(tape : Novika::FrozenBlock::Tape) #

Holds information about the block's tape, in case it has non-empty tape.