class Novika::BytesliceSnapshot

Overview

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.

Defined in:

novika/image.cr

Constant Summary

ENDIAN = ["big"]

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.

KLASS_NAME = [Novika::BytesliceSnapshot]

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.

PARTS = [{type: "basic", name: count, cls: UInt64, onlyif: nil, verify: nil, value: -> do content.size end}, {type: "bytes", name: content, cls: Bytes, onlyif: nil, verify: nil, length: -> do count end, value: nil}] of Nil

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.

REMAINING = [] of Nil

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.

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

Class Method Detail

def self.bit_fields #

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


Macro Detail

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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


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

Snapshot of a byteslice.

Basically, tagged content of the byteslice. Tag being set by TypedSnapshot, this thing serializes to byteslice content and count.


Instance Method Detail

def __format__ : IO::ByteFormat #

def content : Bytes #

def content=(content : Bytes) #

def count : UInt64 #

def count=(count : UInt64) #

def to_form(assembler) #