struct Murcure::Protos::CodecVersion

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :alpha, pb_type: :int32, crystal_type: Int32, cast_type: Int32, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :beta, pb_type: :int32, crystal_type: Int32, cast_type: Int32, native: true, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :prefer_alpha, pb_type: :bool, crystal_type: Bool, cast_type: Bool, native: true, optional: false, repeated: false, default: true, packed: false}, 4 => {name: :opus, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(alpha : Int32, beta : Int32, prefer_alpha : Bool, opus : Bool | Nil = false.as(Bool)) #

def self.new(buf : Protobuf::Buffer) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def alpha : Int32 #

def alpha=(alpha : Int32) #

def beta : Int32 #

def beta=(beta : Int32) #

def opus : Bool | Nil #

def opus=(opus : Bool | Nil) #

def prefer_alpha : Bool #

def prefer_alpha=(prefer_alpha : Bool) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #