Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SharedBytes ¶
type SharedBytes []byte
SharedBytes is a custom type for protobuf, it does not allocates memory in Unmarshal.
func (SharedBytes) Marshal ¶
func (sb SharedBytes) Marshal() ([]byte, error)
Marshal implements custom type for gogo/protobuf.
func (SharedBytes) MarshalTo ¶
func (sb SharedBytes) MarshalTo(data []byte) (n int, err error)
MarshalTo implements custom type for gogo/protobuf.
func (SharedBytes) Size ¶
func (sb SharedBytes) Size() int
Size implements custom type for gogo/protobuf.
func (*SharedBytes) Unmarshal ¶
func (sb *SharedBytes) Unmarshal(data []byte) error
Unmarshal implements custom type for gogo/protobuf.
Click to show internal directories.
Click to hide internal directories.