class Novika::ImagePayload

Overview

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.

Defined in:

novika/image.cr

Constant Summary

ENDIAN = ["big"]

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.

KLASS_NAME = [Novika::ImagePayload]

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.

MONTHLY = VERSION_MATCH[3].to_u8

Monthly increment of the current Novika version.

PARTS = [{type: "group", name: ver, cls: Ver, onlyif: nil, verify: -> do (ver.rev == 10) && ({ver.subrev, ver.yearly, ver.monthly} == {SUBREV, YEARLY, MONTHLY}) end, value: nil}, {type: "group", name: capabilities, cls: Capabilities, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: pool, cls: BlockPool | ::Nil, onlyif: nil, verify: nil, value: nil}] of Nil

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.

REMAINING = [] of Nil

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.

SUBREV = VERSION_MATCH[1].to_u8

Subrevision (release) of the current Novika version.

VERSION_MATCH = ((/(\d+)\.(\d+)\.(\d+)/).match(Novika::VERSION)).not_nil!
YEARLY = VERSION_MATCH[2].to_u8

Yearly increment of the current Novika version.

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(pivot : Block, caps : CapabilityCollection, mode = CaptureMode::CaptureAll) #

Class Method Detail

def self.bit_fields #

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


Macro Detail

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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


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

Normally compressed and/or encrypted, image payload holds the version of Novika it was created with, a list of capabilities it requires, and, finally, BlockPool, which is used to reconstruct the hierarchy (parents, prototypes, friends, and so on, recursively), tape, and dictionary of some pivot block.

Note: temporarily, backward/forward compatibility is disabled. Meaning that only the version of Novika that wrote the image is allowed to read it.


Instance Method Detail

def __format__ : IO::ByteFormat #

Holds information about the capabilities required to run this image.


def capabilities=(capabilities : Novika::ImagePayload::Capabilities) #

Holds information about the capabilities required to run this image.


def pool : BlockPool | Nil #

Holds the block pool.


def pool=(pool : BlockPool | Nil) #

Holds the block pool.


def to_block(caps : CapabilityCollection) #

Converts this image payload to a block, aided by caps.

See Image#to_block.


Holds information about Novika version the image was written with.


def ver=(ver : Novika::ImagePayload::Ver) #

Holds information about Novika version the image was written with.