utils

package
v0.0.0-...-26f9ad4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pack2HashTable = crc64.Table{}/* 256 elements not displayed */

Functions

func CalcCrc32

func CalcCrc32(data []byte) uint32

func Check

func Check(e error)

func Crc32Fmt

func Crc32Fmt(crc32 uint32) string

func DateString

func DateString() string

func FileRead

func FileRead(f *os.File, b []byte)

Read

func FileReadAt

func FileReadAt(f *os.File, b []byte, off int64)

func FileSeek

func FileSeek(f *os.File, offset int64, whence int)

func FileWrite

func FileWrite(f *os.File, b []byte)

Write

func FileWriteAt

func FileWriteAt(f *os.File, b []byte, off int64)

func FileWriteString

func FileWriteString(f *os.File, s string)

func Pack2Hash

func Pack2Hash(data []byte) uint64

func ReadUInt32B

func ReadUInt32B(r io.Reader, i *uint32)

32 Big

func ReadUInt32L

func ReadUInt32L(r io.Reader, i *uint32)

32 Little

func ReadUInt64B

func ReadUInt64B(r io.Reader, i *uint64)

64 Big

func ReadUInt64L

func ReadUInt64L(r io.Reader, i *uint64)

64 Little

func StringInSlice

func StringInSlice(a string, list []string) bool

func TakeInput

func TakeInput() (output string)

func Tell

func Tell(f *os.File) int64

func WriteUInt32B

func WriteUInt32B(w io.Writer, i uint32)

func WriteUInt32L

func WriteUInt32L(w io.Writer, i uint32)

func WriteUInt64B

func WriteUInt64B(w io.Writer, i uint64)

func WriteUInt64L

func WriteUInt64L(w io.Writer, i uint64)

Types

type HashName

type HashName struct {
	Hash uint64
	Name string
}

Jump to

Keyboard shortcuts

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