Skip to content

ProtoWriter

[Source]

class ref ProtoWriter

Constructors

create

[Source]

new ref create()
: ProtoWriter ref^

Returns


Public Functions

write_tag

[Source]

fun ref write_tag(
  field: U64 val,
  field_tag: (VarintField val | Fixed32Field val | Fixed64Field val | 
    DelimitedField val))
: None val

Parameters

Returns


write_enum

[Source]

fun ref write_enum(
  n: ProtoEnumValue val)
: None val

Parameters

Returns


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

[Source]

fun ref write_varint[T: (I32 val | I64 val | U32 val | 
    U64 val | Bool val)](
  n: T)
: None val

Parameters

  • n: T

Returns


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

[Source]

fun ref write_varint_zigzag[T: (I32 val | I64 val)](
  n: T)
: None val

Parameters

  • n: T

Returns


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

[Source]

fun ref write_packed_varint[T: (I32 val | I64 val | U32 val | 
    U64 val | Bool val)](
  from: Array[T] box,
  from_size: U32 val)
: None val

Parameters

Returns


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

[Source]

fun ref write_packed_varint_zigzag[T: (I32 val | I64 val)](
  from: Array[T] box,
  from_size: U32 val)
: None val

Parameters

Returns


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

[Source]

fun ref write_packed_fixed32[T: (U32 val | I32 val | F32 val)](
  from: Array[T] box)
: None val

Parameters

Returns


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

[Source]

fun ref write_packed_fixed64[T: (U64 val | I64 val | F64 val)](
  from: Array[T] box)
: None val

Parameters

Returns


write_packed_enum[T: ProtoEnumValue val]

[Source]

fun ref write_packed_enum[T: ProtoEnumValue val](
  from: Array[T] box,
  from_size: U32 val)
: None val

Parameters

Returns


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

[Source]

fun ref write_fixed_32[T: (U32 val | I32 val | F32 val)](
  n: T)
: None val

Parameters

  • n: T

Returns


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

[Source]

fun ref write_fixed_64[T: (U64 val | I64 val | F64 val)](
  n: T)
: None val

Parameters

  • n: T

Returns


write_bytes

[Source]

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

Parameters

Returns


done

[Source]

fun ref done()
: Array[(String val | Array[U8 val] val)] iso^

Returns


done_array

[Source]

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

Returns