struct

Jalopy::InlineFile

Inherits Protobuf::Message < Struct < Value < Object

Constants

FIELDS = {1 => {name: :type, pb_type: FileType, crystal_type: FileType, cast_type: FileType, native: false, optional: false, repeated: false, default: FileType::File, packed: false}, 2 => {name: :data, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :size, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :blocks, pb_type: :uint64, crystal_type: UInt64, cast_type: Array(UInt64)?, native: true, optional: true, repeated: true, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

new(buf : Protobuf::Buffer)
new(type : FileType, data : Slice(UInt8) | Nil = nil, size : UInt64 | Nil = nil, blocks : Array(UInt64) | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
blocks
blocks=(blocks : Array(UInt64) | Nil)
data
data=(data : Slice(UInt8) | Nil)
size
size=(size : UInt64 | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf
type
type=(type : FileType)