You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pkg/archive/archive.go
+6-1
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,12 @@ type Entry interface {
58
58
CompressedAs(compressionMethodCompressionMethod) bool// Whether the entry is compressed using the given method.
59
59
Read(startint64, endint64) ([]byte, error) // Reads the whole content of this entry, or a portion when [start] or [end] are specified.
60
60
Stream(w io.Writer, startint64, endint64) (int64, error) // Streams the whole content of this entry to a writer, or a portion when [start] or [end] are specified.
61
-
StreamCompressed(w io.Writer) (int64, error) // Streams the compressed content of this entry to a writer.
61
+
62
+
StreamCompressed(w io.Writer) (int64, error) // Streams the compressed content of this entry to a writer.
63
+
StreamCompressedGzip(w io.Writer) (int64, error) // Streams the compressed content of this entry to a writer in a GZIP container.
64
+
ReadCompressed() ([]byte, error) // Reads the compressed content of this entry.
65
+
ReadCompressedGzip() ([]byte, error) // Reads the compressed content of this entry inside a GZIP container.
0 commit comments