Documentation
¶
Index ¶
- func AcquireBuffer() *bytes.Buffer
- func AcquireWriter(w io.Writer) *cgzip.Writer
- func Encode(p []byte) ([]byte, error)
- func EncodeToBuffer(p []byte) (*bytes.Buffer, error)
- func EncodeToWriter(w io.Writer, p []byte) error
- func ReleaseBuffer(buf *bytes.Buffer)
- func ReleaseWriter(gw *cgzip.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireBuffer ¶
AcquireBuffer returns a pooled *bytes.Buffer with length 0.
func AcquireWriter ¶
AcquireWriter returns a pooled *gzip.Writer reset to write into w.
func EncodeToBuffer ¶
EncodeToBuffer compresses p and returns a pooled buffer holding the result.
func EncodeToWriter ¶
EncodeToWriter compresses p and writes the result to w using a pooled writer.
func ReleaseBuffer ¶
ReleaseBuffer returns the buffer to the pool.
func ReleaseWriter ¶
ReleaseWriter closes the writer (flushes) and returns it to the pool.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.