byteutils

package
v0.0.0-...-369a1d7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 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

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