Documentation ¶
Overview ¶
Package snappy implements the snappy compressed data format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (Writer) Close ¶
Close closes the Writer by flushing any unwritten data to the underlying io.Writer. It does not close the underlying io.Writer.
func (Writer) Flush ¶
Flush flushes any pending compressed data to the underlying writer.
It is useful mainly in compressed network protocols, to ensure that a remote reader has enough data to reconstruct a packet. Flush does not return until the data has been written. If the underlying writer returns an error, Flush returns that error.
Click to show internal directories.
Click to hide internal directories.