byteUtils

package
v0.0.0-...-13ff1a9 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HexToSlice

func HexToSlice(hexStr string) ([]byte, error)

*

  • 中间带空格的
  • 68 56 00 56 00 68 4B 00 12 51 BC 02 0D E9 40 04 01 14 22 11 17 19 16 02 04 23 00 5D 16

func ReadN

func ReadN(n int, reader *bufio.Reader) ([]byte, error)

*

  • 直到从reader中读取n个字节才返回,否则tcp一直阻塞

func SliceToHex

func SliceToHex(slice []byte) string

数组转成中间带空格的hex传值

Types

This section is empty.

Jump to

Keyboard shortcuts

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