package proto

import "github.com/moby/buildkit/util/grpcutil/encoding/proto"

Package proto implements a custom encoding for grpc.

The codec registered by this package has an important difference from the default codec. Unlike the default codec, it does not reset the input message when unmarshaling.

This primarily impacts stream service calls. If you want to reuse a message and need it to be reset before calling RecvMsg, invoke the appropriate Reset method or proto.Reset before invoking RecvMsg or use a zero initialized message.

Index

Source Files

proto.go

Version
v0.17.2
Published
Nov 22, 2024
Platform
js/wasm
Imports
6 packages
Last checked
4 seconds ago

Tools for package owners.