tipb: github.com/pingcap/tipb/sharedbytes Index | Files

package sharedbytes

import "github.com/pingcap/tipb/sharedbytes"

Index

Package Files

sharedbytes.go

type SharedBytes Uses

type SharedBytes []byte

SharedBytes is a custom type for protobuf, it does not allocates memory in Unmarshal.

func (SharedBytes) Marshal Uses

func (sb SharedBytes) Marshal() ([]byte, error)

Marshal implements custom type for gogo/protobuf.

func (SharedBytes) MarshalTo Uses

func (sb SharedBytes) MarshalTo(data []byte) (n int, err error)

MarshalTo implements custom type for gogo/protobuf.

func (SharedBytes) Size Uses

func (sb SharedBytes) Size() int

Size implements custom type for gogo/protobuf.

func (*SharedBytes) Unmarshal Uses

func (sb *SharedBytes) Unmarshal(data []byte) error

Unmarshal implements custom type for gogo/protobuf.

Package sharedbytes is imported by 1 packages. Updated 2017-03-13. Refresh now. Tools for package owners.