endian

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: Apache-2.0 Imports: 7 Imported by: 107

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