utils

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUint32 added in v1.0.0

func BytesToUint32(buf []byte) uint32

func BytesToUint64 added in v1.0.0

func BytesToUint64(buf []byte) uint64

func GetPaddedData

func GetPaddedData(data []byte, size uint64, targetSize uint64, padding string) []byte

func GetPaddedFile

func GetPaddedFile(data []byte, size uint64, targetSize uint64, padding string, offset uint64) []byte

func GetVersion

func GetVersion(file *os.File) uint64

func MIN added in v1.0.0

func MIN(a uint64, b uint64) uint64

func SyncAndUpdateVersion

func SyncAndUpdateVersion(file *os.File, version uint64)

func TargetSizeWrapper added in v1.0.0

func TargetSizeWrapper(targetSize uint64) uint64

func Uint32ToBytes added in v1.0.0

func Uint32ToBytes(i uint32) []byte

func Uint64ToBytes added in v1.0.0

func Uint64ToBytes(i uint64) []byte

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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