bigendian

package
v0.0.0-...-c20b0bb Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package bigendian provides functionality to convert (u)ints encoded in big-endian to little-endian. Note that all architectures officially supported by go (x86, amd64, arm) are little-endian. (ARM supports big-endian in principle, but go doesn't support big-endian ARM. See https://github.com/golang/go/issues/11079 .)

We only have assembler code for amd64, but we have a reference implementation in pure go that is used for testing and on non-amd64 platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutInt64

func PutInt64(b []byte, val int64)

func PutUint64

func PutUint64(b []byte, val uint64)

func ReadInt64At

func ReadInt64At(b []byte, idx int) int64

func ReadUint64At

func ReadUint64At(b []byte, idx int) uint64

func UnsafeReadInt64At

func UnsafeReadInt64At(b []byte, idx int) int64

func UnsafeReadUint64At

func UnsafeReadUint64At(b []byte, idx int) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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