endian

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 8 modules, 107 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package endian implements binary.Reader and binary.Writer for reading / writing simple primivite types from a binary source.

Boolean values are encoded as single bytes, where 0 represents false and non- zero represents true.

Numeric types are all encoded as the simple native representation, but no attempt is made to align them.

Strings are encoded in C style null terminated form.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reader

func Reader(r io.Reader, endian device.Endian) binary.Reader

Reader creates a binary.Reader that reads from the provided io.Reader, with the specified byte order.

func Writer

func Writer(w io.Writer, endian device.Endian) binary.Writer

Writer creates a binary.Writer that writes to the supplied stream, with the specified byte order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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