struct Protobuf::Buffer

Defined in:

protobuf/buffer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def decode_zigzag(value) #

[View source]
def new_from_length #

[View source]
def read(n : Int32) #

[View source]
def read_bool #

[View source]
def read_bytes #

[View source]
def read_double #

[View source]
def read_fixed32 #

[View source]
def read_fixed64 #

[View source]
def read_float #

[View source]
def read_info #

[View source]
def read_int32 #

[View source]
def read_int64 #

[View source]
def read_sfixed32 #

[View source]
def read_sfixed64 #

[View source]
def read_sint32 #

[View source]
def read_sint64 #

[View source]
def read_string #

[View source]
def read_uint32 #

[View source]
def read_uint64 #

[View source]
def skip(wire) #

[View source]
def write(value, pb_type) #

[View source]
def write_bool(b : Bool) #

[View source]
def write_bytes(bytes : Slice(UInt8)) #

[View source]
def write_double(n : Float64) #

[View source]
def write_enum(e : Enum) #

[View source]
def write_fixed32(n : UInt32) #

[View source]
def write_fixed64(n : UInt64) #

[View source]
def write_float(n : Float32) #

[View source]
def write_info(tag : Int32, wire : Int32) #

[View source]
def write_int32(n : Int32) #

[View source]
def write_int64(n : Int64) #

[View source]
def write_io(io : IO) #

[View source]
def write_message(msg : Protobuf::Message) #

[View source]
def write_message(e : Enum) #

[View source]
def write_packed(arr, pb_type) #

[View source]
def write_sfixed32(n : Int32) #

[View source]
def write_sfixed64(n : Int64) #

[View source]
def write_sint32(n : Int32) #

[View source]
def write_sint64(n : Int64) #

[View source]
def write_string(str : String) #

[View source]
def write_uint32(n : UInt32) #

[View source]
def write_uint64(n : UInt64) #

[View source]