binary

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const INT_SIZE int = int(unsafe.Sizeof(0))

Variables

View Source
var NativeLoader = NewStdLoader(GetNativeEndian())

Functions

func GetNativeEndian

func GetNativeEndian() (bo binary.ByteOrder)

Types

type Loader

type Loader interface {
	BinaryLoad(r io.Reader, data interface{}) (err error)
}

type StdLoader

type StdLoader struct {
	// contains filtered or unexported fields
}

func NewStdLoader

func NewStdLoader(order binary.ByteOrder) (s StdLoader)

func (StdLoader) BinaryLoad

func (s StdLoader) BinaryLoad(r io.Reader, data interface{}) (err error)

Jump to

Keyboard shortcuts

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