protoc

package
v0.0.0-...-012d1c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

protobuf codec

Index

Constants

View Source
const Name = "proto"

Variables

View Source
var ErrNotMessage = errors.New("not pb message")

Functions

func New

func New() codec.Codec

Types

type Codec

type Codec struct {
}

func (*Codec) Decode

func (*Codec) Decode(b *buffer.Buffer, msg interface{}) error

func (*Codec) Encode

func (*Codec) Encode(b *buffer.Buffer, msg interface{}) error

func (*Codec) Name

func (*Codec) Name() string

func (*Codec) Type

func (*Codec) Type() int

Directories

Path Synopsis
proto protobuf编解码的简单实现,限制是仅仅支持工具生成协议,好处是不依赖官方库,而且代码量也少
proto protobuf编解码的简单实现,限制是仅仅支持工具生成协议,好处是不依赖官方库,而且代码量也少

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL