compress

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package compress wraps a stream connection with Snappy compression.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressedConnection

type CompressedConnection struct {
	// contains filtered or unexported fields
}

CompressedConnection wraps an io.ReadWriteCloser and transparently compresses data written and decompresses data read using Snappy.

func NewCompressedConnection

func NewCompressedConnection(conn io.ReadWriteCloser) *CompressedConnection

func (*CompressedConnection) Close

func (self *CompressedConnection) Close() error

func (*CompressedConnection) Read

func (self *CompressedConnection) Read(buffer []byte) (int, error)

func (*CompressedConnection) Write

func (self *CompressedConnection) Write(buffer []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL