Turn this package into a wrapper for protobuf/encoding/protodelim

Since Go Protobuf v1.30.0, the protodelim package is available upstream.

The only notable API difference is that protodelim does not return the number of
bytes read, which is why I added the countingReader type to pbutil/decode.go.
5 files changed
tree: 4c938957b360693f0ddc5718f3845dbc85d8a22f
  1. ext/
  2. pbtest/
  3. pbutil/
  4. testdata/
  5. .travis.yml
  6. CHANGELOG.md
  7. go.mod
  8. go.sum
  9. LICENSE
  10. Makefile.TRAVIS
  11. NOTICE
  12. README.md
README.md

Overview

This repository provides various Protocol Buffer feature extensions for the Go programming language (golang), namely support for record length-delimited message streaming.

JavaGo
MessageLite#parseDelimitedFrompbutil.ReadDelimited
MessageLite#writeDelimitedTopbutil.WriteDelimited

Because Code Review 9102043 is destined to never be merged into mainline (i.e., never be promoted to formal goprotobuf features), this repository will live here in the wild.

Documentation

We have generated Go Doc documentation here.

Testing

Build Status