byteutils

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package byteutils provides helper utilities for working with bytes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeftPadTo32Bytes

func LeftPadTo32Bytes(bytes []byte) ([]byte, error)

LeftPadTo32Bytes appends zeros to bytes slice to make it exactly 32 bytes long

func Reverse added in v1.21.0

func Reverse(bytes []byte) []byte

Reverse reverses bytes order in the slice. The function copies the slice and returns a new reversed slice, keeping the source slice untouched.

Types

This section is empty.

Jump to

Keyboard shortcuts

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