bytesx

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromUint16BE

func FromUint16BE(v uint16) []byte

FromUint16BE convert uint16 to []byte in big endian

func FromUint16LE

func FromUint16LE(v uint16) []byte

FromUint16LE convert uint16 to []byte in little endian

@param v param
@return []byte result

func SetAll

func SetAll(b []byte, v byte)

SetAll set all bytes of the slice to value SetAll set all bytes of the slice to value

@param b byte array
@param v param

func ToUint16BE

func ToUint16BE(b []byte) uint16

ToUint16BE convert []byte of big endian to uint16

func ToUint16LE

func ToUint16LE(b []byte) uint16

ToUint16LE convert []byte of little endian to uint16

func ZeroAll

func ZeroAll(b []byte)

ZeroAll set all bytes of the slice to 0

@param b byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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