package starcrypto import "b612.me/starcrypto/filex" func Attach(src, dst, output string) error { return filex.Attach(src, dst, output) } func Detach(src string, bytenum int, dst1, dst2 string) error { return filex.Detach(src, bytenum, dst1, dst2) } func SplitFile(src, dst string, num int, bynum bool, shell func(float64)) error { return filex.SplitFile(src, dst, num, bynum, shell) } func MergeFile(src, dst string, shell func(float64)) error { return filex.MergeFile(src, dst, shell) } // FillWithRandom uses math/rand pseudo-random bytes and is not cryptographically secure. func FillWithRandom(filepath string, filesize int, bufcap int, bufnum int, shell func(float64)) error { return filex.FillWithRandom(filepath, filesize, bufcap, bufnum, shell) } // FillWithCryptoRandom uses crypto/rand secure random bytes. // Throughput may be lower than FillWithRandom. func FillWithCryptoRandom(filepath string, filesize int, bufcap int, shell func(float64)) error { return filex.FillWithCryptoRandom(filepath, filesize, bufcap, shell) }