Documentation ¶
Index ¶
- Variables
- func ExtractEmbedSpk(ctx context.Context, dstDir string) error
- func ExtractSpk(ctx context.Context, src io.Reader, dstDir string) (err error)
- func ExtractSpkFile(ctx context.Context, srcPath string, dstDir string) error
- func ExtractSpkPackage(ctx context.Context, src io.Reader, dstDir string) error
- func TarExtract(ctx context.Context, src io.Reader, walk TarWalkFunc, decoder ...TarDecoder) (err error)
- func Xz(src io.Reader) (io.ReadCloser, error)
- type TarDecoder
- type TarWalkFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Bytes []byte
Functions ¶
func ExtractEmbedSpk ¶
ExtractEmbedSpk 从迅雷SPK中提取需要的文件
func ExtractSpk ¶
ExtractSpk 从迅雷SPK中提取需要的文件
func ExtractSpkFile ¶
ExtractSpkFile 从迅雷SPK中提取需要的文件
func ExtractSpkPackage ¶
ExtractSpkPackage 从迅雷SPK文件内的package.tgz中提取需要的文件
func TarExtract ¶
func TarExtract(ctx context.Context, src io.Reader, walk TarWalkFunc, decoder ...TarDecoder) (err error)
Types ¶
type TarDecoder ¶
type TarDecoder func(io.Reader) (io.ReadCloser, error)
func (TarDecoder) Decode ¶
func (d TarDecoder) Decode(r io.Reader) io.ReadCloser
Click to show internal directories.
Click to hide internal directories.