class Novika::QuoteSnapshot

Overview

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.

Defined in:

novika/image.cr

Constant Summary

ENDIAN = ["big"]

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.

KLASS_NAME = [Novika::QuoteSnapshot]

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.

PARTS = [{type: "basic", name: bytesize, cls: UInt64, onlyif: nil, verify: nil, value: -> do content.bytesize end}, {type: "string", name: content, cls: String, onlyif: nil, verify: nil, length: -> do bytesize end, value: nil, encoding: nil}] of Nil

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.

REMAINING = [] of Nil

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.

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 : Quote) #

Class Method Detail

def self.bit_fields #

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


Macro Detail

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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


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

Snapshot of a quote form, stored as bytesize followed by content. The latter is due to the fact that \0 is a valid content character in quotes.

Its type is SnapshotType::Quote.


Instance Method Detail

def __format__ : IO::ByteFormat #

def bytesize : UInt64 #

Holds the size of quote content, in bytes.


def bytesize=(bytesize : UInt64) #

Holds the size of quote content, in bytes.


def content : String #

Holds the content string.


def content=(content : String) #

Holds the content string.


def to_form(assembler) #