daqing/moonkafka/buf does not have a README file
pub(all) suberror DecodeError { UnexpectedEof Malformed(String)}
pub struct Decoder { data : Bytes pos : Int}
fn Decoder::new(data : Bytes, start? : Int) -> Decoder
fn Decoder::read_bool(self : Decoder) -> Bool raise DecodeError
fn Decoder::read_byte(self : Decoder) -> Byte raise DecodeError
fn Decoder::read_bytes(self : Decoder, n : Int) -> Bytes raise DecodeError
fn Decoder::read_compact_len(self : Decoder) -> Int raise DecodeError
fn Decoder::read_compact_nullable_string(self : Decoder) -> String? raise DecodeError
fn Decoder::read_compact_string(self : Decoder) -> String raise DecodeError
fn Decoder::read_i16(self : Decoder) -> Int raise DecodeError
fn Decoder::read_i32(self : Decoder) -> Int raise DecodeError
fn Decoder::read_i64(self : Decoder) -> Int64 raise DecodeError
fn Decoder::read_i8(self : Decoder) -> Int raise DecodeError
fn Decoder::read_uvarint(self : Decoder) -> Int raise DecodeError
fn Decoder::read_varint(self : Decoder) -> Int raise DecodeError
fn Decoder::read_varlong(self : Decoder) -> Int64 raise DecodeError
fn Decoder::remaining(self : Decoder) -> Int
fn Decoder::skip(self : Decoder, n : Int) -> Unit raise DecodeError
fn Decoder::skip_tag_buffer(self : Decoder) -> Unit raise DecodeError
pub struct Encoder { buf : Array[Byte]}
fn Encoder::new() -> Encoder
fn Encoder::to_bytes(self : Encoder) -> Bytes
fn Encoder::write_bool(self : Encoder, v : Bool) -> Unit
fn Encoder::write_byte(self : Encoder, b : Byte) -> Unit
fn Encoder::write_bytes(self : Encoder, b : Bytes) -> Unit
fn Encoder::write_compact_len(self : Encoder, n : Int) -> Unit
fn Encoder::write_compact_nullable_string(self : Encoder, s : String?) -> Unit
fn Encoder::write_compact_string(self : Encoder, s : String) -> Unit
fn Encoder::write_i16(self : Encoder, v : Int) -> Unit
fn Encoder::write_i32(self : Encoder, v : Int) -> Unit
fn Encoder::write_i64(self : Encoder, v : Int64) -> Unit
fn Encoder::write_i8(self : Encoder, v : Int) -> Unit
fn Encoder::write_nullable_string(self : Encoder, s : String?) -> Unit
fn Encoder::write_tag_buffer(self : Encoder) -> Unit
fn Encoder::write_tagged_fields(self : Encoder, tags : Array[(Int, Bytes)]) -> Unit
fn Encoder::write_uvarint(self : Encoder, v : UInt) -> Unit
fn Encoder::write_varint(self : Encoder, v : Int) -> Unit
fn Encoder::write_varlong(self : Encoder, v : Int64) -> Unit
Install
Dependencies
Powered by MoonBit
© 2026 mooncakes.io