Skip to content

ProtoReader

[Source]

class ref ProtoReader

Constructors

create

[Source]

new ref create()
: ProtoReader ref^

Returns


Public Functions

size

[Source]

fun box size()
: USize val

Returns


pop_embed

[Source]

fun ref pop_embed()
: ProtoReader ref ?

Returns


block

[Source]

fun ref block(
  slice_size: USize val)
: ProtoReader ref ?

Parameters

Returns


read_field_tag

[Source]

fun ref read_field_tag()
: (U64 val , (VarintField val | Fixed32Field val | Fixed64Field val | 
    DelimitedField val)) ?

Returns


read_varint_bool

[Source]

fun ref read_varint_bool()
: Bool val ?

Returns


read_varint_32

[Source]

fun ref read_varint_32()
: U32 val ?

Returns


read_varint_64

[Source]

fun ref read_varint_64()
: U64 val ?

Returns


read_varint_zigzag_32

[Source]

fun ref read_varint_zigzag_32()
: I32 val ?

Returns


read_varint_zigzag_64

[Source]

fun ref read_varint_zigzag_64()
: I64 val ?

Returns


read_fixed_32_integer

[Source]

fun ref read_fixed_32_integer()
: U32 val ?

Returns


read_fixed_32_float

[Source]

fun ref read_fixed_32_float()
: F32 val ?

Returns


read_fixed_64_integer

[Source]

fun ref read_fixed_64_integer()
: U64 val ?

Returns


read_fixed_64_float

[Source]

fun ref read_fixed_64_float()
: F64 val ?

Returns


read_packed_varint[T: (I32 val | I64 val | U32 val | U64 val | Bool val)]

[Source]

fun ref read_packed_varint[T: (I32 val | I64 val | U32 val | 
    U64 val | Bool val)](
  into: Array[T] ref)
: None val ?

Parameters

Returns


read_packed_varint_zigzag[T: (I32 val | I64 val)]

[Source]

fun ref read_packed_varint_zigzag[T: (I32 val | I64 val)](
  into: Array[T] ref)
: None val ?

Parameters

Returns


read_packed_fixed_32[T: (U32 val | I32 val | F32 val)]

[Source]

fun ref read_packed_fixed_32[T: (U32 val | I32 val | F32 val)](
  into: Array[T] ref)
: None val ?

Parameters

Returns


read_packed_fixed_64[T: (U64 val | I64 val | F64 val)]

[Source]

fun ref read_packed_fixed_64[T: (U64 val | I64 val | F64 val)](
  into: Array[T] ref)
: None val ?

Parameters

Returns


read_packed_enum[T: ProtoEnumValue val]

[Source]

fun ref read_packed_enum[T: ProtoEnumValue val](
  into: Array[T] ref,
  builder: ProtoEnum val)
: None val ?

Parameters

Returns


read_bytes

[Source]

fun ref read_bytes()
: Array[U8 val] iso^ ?

Returns


read_string

[Source]

fun ref read_string()
: String iso^ ?

Returns


read_raw_delimited_length

[Source]

fun ref read_raw_delimited_length()
: USize val ?

Returns


skip_field

[Source]

fun ref skip_field(
  field_tag: (VarintField val | Fixed32Field val | Fixed64Field val | 
    DelimitedField val))
: None val ?

Parameters

Returns


skip_raw

[Source]

fun ref skip_raw(
  to_skip: USize val)
: None val ?

Parameters

Returns


append

[Source]

fun ref append(
  data: (String val | Array[U8 val] val))
: None val

Parameters

Returns