Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.65 KB

File metadata and controls

61 lines (42 loc) · 1.65 KB
slug /model/protobuf
title Protocol Buffers package reference
sidebar_position 8

Protocol Buffers package reference

BinaryParsec.Protocols.Protobuf exposes wire-field tokenization plus a wire-message collector over the shared contiguous parser core.

What this shows

The package stays at the wire-format layer. It parses field tags plus the supported payload encodings and leaves schema-specific message interpretation to higher-level code.

Core shape

  • ProtobufWire
  • ProtobufFieldTag
  • ProtobufFieldSlice
  • ProtobufFieldValueSlice
  • ProtobufField
  • ProtobufFieldValue

What you can do

  • Parse one wire field as a zero-copy slice.
  • Collect repeated wire fields through end of input.
  • Materialize owned field payloads only when a caller needs them.

Member map

Create and run

  • ProtobufWire.field
  • ProtobufWire.message
  • ProtobufWire.tryParseField
  • ProtobufWire.parseField
  • ProtobufWire.tryParseMessage
  • ProtobufWire.parseMessage

Collections

  • ProtobufField[]
  • ProtobufFieldValue[]

Bridges

  • ProtobufWireParser
  • ProtobufWireMaterializer

Read next

Source links