class Novika::BlockRefSnapshot

Overview

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.

Defined in:

novika/image.cr

Constant Summary

ENDIAN = ["big"]

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.

KLASS_NAME = [Novika::BlockRefSnapshot]

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.

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

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.

REMAINING = [] of Nil

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.

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(id : UInt64) #

def self.new(block : Form) #

Class Method Detail

def self.bit_fields #

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.


Macro Detail

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

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.


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

A unique, integer id-based reference to a block found in the one-and-only BlockPool.

Its type is SnapshotType::BlockRef.


Instance Method Detail

def __format__ : IO::ByteFormat #

def id : UInt64 #

Holds unique id of the block this reference points to, in BlockPool.


def id=(id : UInt64) #

Holds unique id of the block this reference points to, in BlockPool.


def to_form(assembler) #