utils

package
v0.0.0-...-fc9add9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(o Marshaler, b *bytes.Buffer) (err error)

marshal the object o to b

func Marshals

func Marshals(o ...Marshaler) (data []byte, err error)

marshal multiple o, which can be nil.

func Unmarshal

func Unmarshal(o UnmarshalSizer, b *bytes.Buffer) (err error)

unmarshal the object from b

func Unmarshals

func Unmarshals(b *bytes.Buffer, o ...UnmarshalSizer) (err error)

unmarshal multiple o pointers, which can be nil.

Types

type Marshaler

type Marshaler interface {
	encoding.BinaryMarshaler
}

unmarshaler

type UnmarshalSizer

type UnmarshalSizer interface {
	encoding.BinaryUnmarshaler

	// the total size of bytes for this amf0 instance.
	Size() int
}

unmarshaler and sizer.

Jump to

Keyboard shortcuts

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