sharedbytes

package
v0.0.0-...-56b0212 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 0 Imported by: 121

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.

Jump to

Keyboard shortcuts

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