util

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(buffer io.Reader, outputs ...interface{}) error

Decode decodes data from io reader to specified interfaces

 Example:
	var num1 uint16
	var num2 uint32
	// read the buffer 2 bytes and 4 bytes sequentially
	// decode and output corresponding uint16 and uint32 number into num1 and num2 respectively
	err := Decode(buffer, &num1, &num2)

Types

This section is empty.

Jump to

Keyboard shortcuts

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