class Novika::TypedSnapshot
- Novika::TypedSnapshot
- BinData
- Reference
- Object
Overview
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
Defined in:
novika/image.crConstant Summary
-
ENDIAN =
["big"]
-
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
KLASS_NAME =
[Novika::TypedSnapshot]
-
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
PARTS =
[{type: "enum", name: type, cls: UInt8, onlyif: nil, verify: nil, value: nil, encoding: SnapshotType}, {type: "basic", name: snapshot, cls: Snapshot, onlyif: nil, verify: nil, value: nil}] of Nil
-
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
REMAINING =
[] of Nil
-
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
Constructors
- .new(type : Novika::SnapshotType, snapshot : Novika::Snapshot)
-
.new(form : Block)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Boolean)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Color)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Decimal)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Quote)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Word)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : QuotedWord)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Builtin)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Byteslice)
Creates the corresponding
TypedSnapshot
for form. -
.new(form : Library | ForeignFunction | StructViewForm | StructLayoutForm)
Creates the corresponding
TypedSnapshot
for form. -
.new(form)
Raises: no overload for form.
Class Method Summary
-
.bit_fields
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
- .from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::BigEndian)
Macro Summary
-
novika_block_ref_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_boolean_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_builtin_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_byteslice_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_color_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_large_decimal_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_quote_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_quoted_word_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_small_decimal_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_typed_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
-
novika_word_snapshot(name, onlyif = nil, verify = nil, value = nil)
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
Instance Method Summary
- #__format__ : IO::ByteFormat
-
#snapshot : Snapshot
Holds the
Snapshot
object. -
#snapshot=(snapshot : Snapshot)
Holds the
Snapshot
object. -
#to_form(assembler)
See
Snapshot#to_form
. -
#type : SnapshotType
Holds the type of the
#snapshot
. -
#type=(type : SnapshotType)
Holds the type of the
#snapshot
.
Constructor Detail
Class Method Detail
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
Macro Detail
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.
A snapshot with a type, basis for (de)serializing value forms to/from binary data.