binary

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToIntByLittleEndian

func ByteToIntByLittleEndian(data []byte) (int, error)

ByteToIntByLittleEndian is a byte[] to int converter. c# BitConverter.GetBytes is LittleEndian LittleEndian 從最小開始 (最低位元組在前) BigEndian 從最大開始 (最高位元組在前) Ex: long 0x12345678 littleEndian 0x78 0x56 0x34 0x12 BigEndian 78 56 43 12

func SingleByteToIntByBigEndian

func SingleByteToIntByBigEndian(data byte) (int, error)

SingleByteToIntByBigEndian is single byte to uint16 converter.

func Uint32ToByteByBigEndian

func Uint32ToByteByBigEndian(num uint32) []byte

Uint32ToByteByBigEndian is a uint32 to byte[] converter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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