github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/compress/bzip2/bzip2.go (about) 1 // Copyright 2011 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package bzip2 implements bzip2 decompression. 6 package bzip2 7 8 import "github.com/shogo82148/std/io" 9 10 // StructuralErrorは、bzip2データが構文的に無効であることが判明した場合に返されます。 11 type StructuralError string 12 13 func (s StructuralError) Error() string 14 15 // NewReader returns an io.Reader which decompresses bzip2 data from r. 16 // If r does not also implement [io.ByteReader], 17 // the decompressor may read more data than necessary from r. 18 func NewReader(r io.Reader) io.Reader