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

Instance Method Summary

Macro 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

Constructor Detail

def self.new(form : Byteslice) #

[View source]

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.


[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def content : Bytes #

def content=(content : Bytes) #

def count : UInt64 #

def count=(count : UInt64) #

def to_form(assembler) #

[View source]

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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]
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.


[View source]