utils

package
v0.0.0-...-5a2d4e6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const UTILS_HEADERLENGTH = 8

Variables

This section is empty.

Functions

func GetRecordLength

func GetRecordLength(data []byte) uint32

func GetS3BucketNameAndKey

func GetS3BucketNameAndKey(filename string) (string, string, error)

func Int64ToRawOutput

func Int64ToRawOutput(input int64) types.RawOutput

func IntToRawOutput

func IntToRawOutput(input int) types.RawOutput

func PutRecord

func PutRecord(data []byte) []byte

func PutStringRecord

func PutStringRecord(str string) []byte

func RawDecode

func RawDecode(input []byte, item interface{}) error

func RawEncode

func RawEncode(item interface{}) []byte

func RawInputToInt

func RawInputToInt(input types.RawInput) int

func RawInputToRawOutput

func RawInputToRawOutput(input []byte) types.RawOutput

func ReadRecord

func ReadRecord(input writers.Reader) (bool, []byte, error)

func StringArrayToRawOutput

func StringArrayToRawOutput(input []string) []types.RawOutput

func StringToRawOutput

func StringToRawOutput(input string) types.RawOutput

func UnmarshalRawInput

func UnmarshalRawInput(input []byte, item interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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