bench

package
v0.0.0-...-bc9598e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Foo

type Foo struct {
	A int
	B string
	C []byte
	D struct {
		A uint64
		B string
	}
	E []int
	F [2]int
	G bool
}

Foo is the type to be benchmarked.

func (*Foo) DecodeBinary

func (t *Foo) DecodeBinary(reader io.Reader) error

DecodeBinary reads the binary representation of the type from the given reader and fulls the type with it.

func (*Foo) DecodeBinaryFromBytes

func (t *Foo) DecodeBinaryFromBytes(data []byte) error

DecodeBinaryFromBytes fills the type with the given binary-encoded representation of the type.

func (Foo) EncodeBinary

func (t Foo) EncodeBinary() ([]byte, error)

EncodeBinary returns a binary-encoded representation of the type.

func (Foo) WriteBinary

func (t Foo) WriteBinary(writer io.Writer) error

WriteBinary writes the binary-encoded representation of the type to the given writer.

Jump to

Keyboard shortcuts

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