smallendian

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

Package used to convert intergers to byte arrays in small endian

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromInt

func FromInt(data [4]byte) int

helper function which converts a small endian []byte to a int

func FromUint64

func FromUint64(data [8]byte) uint64

helper function which converts a small endian []byte to a uint64

func ToInt

func ToInt(n int) [4]byte

helper function which converts a int to a []byte in Small Endian

func ToUint64

func ToUint64(n uint64) [8]byte

helper function which converts a uint64 to a []byte in Small Endian

Types

This section is empty.

Jump to

Keyboard shortcuts

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