utils

package
v0.0.0-...-c3300ad Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUTF16

func DecodeUTF16(data []byte) string

func DecodeUTF16LE

func DecodeUTF16LE(s []byte) string

DecodeUTF16LE 尝试将字节切片按 UTF-16LE 编码解码

func DecodeWindows1252

func DecodeWindows1252(data []byte) string

func JoinReversedWithBackslash

func JoinReversedWithBackslash(name []string) string

JoinReversedWithBackslash 用反斜杠连接反转后的切片

func Partition

func Partition(path, sep string) (string, string, string)

partition 实现类似 Python 的 partition 方法

func ReverseSlice

func ReverseSlice(slice []string) []string

ReverseSlice 反转切片

func UnpackUint32BigEndian

func UnpackUint32BigEndian(d []byte) uint32

unpackUint32BigEndian 函数用于从字节切片中按大端字节序解包出一个无符号 32 位整数

func UnpackUint32LittleEndian

func UnpackUint32LittleEndian(d []byte) uint32

func UnpackUint64LittleEndian

func UnpackUint64LittleEndian(d []byte) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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