code

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	A uint32
	B uint64
	C float32
	D float64
	E string
	F bool
	G []byte
	H [][]byte
}

Object is a test struct

func (*Object) Marshal

func (o *Object) Marshal(buf []byte) ([]byte, error)

Marshal marshals the Object into buf and returns the bytes.

func (*Object) Unmarshal

func (o *Object) Unmarshal(data []byte) (uint64, error)

Unmarshal unmarshals the Object from buf and returns the number of bytes read (> 0).

Jump to

Keyboard shortcuts

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