Documentation ¶
Index ¶
- Constants
- func Compress(infile io.ReadSeeker, outfile io.ReadWriteSeeker, passwd string, cb Callback) (err error)
- func Decompress(infile io.ReadWriteSeeker, outfile io.WriteSeeker, passwd string, cb Callback) (err error)
- type Callback
- type Decoder
- type Encoder
- func (e *Encoder) Close()
- func (e *Encoder) Finalize()
- func (e *Encoder) ProcessFrame(in []byte)
- func (e *Encoder) ProcessStream(in []byte, cb Callback)
- func (e *Encoder) SetInfo(info *Info) (err error)
- func (e *Encoder) SetPassword(pass string)
- func (e *Encoder) WriteHeader(info *Info) (size uint32, err error)
- type Info
Constants ¶
View Source
const (
// Version of TTA lib
Version = "0.1.1"
)
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(infile io.ReadSeeker, outfile io.ReadWriteSeeker, passwd string, cb Callback) (err error)
func Decompress ¶
func Decompress(infile io.ReadWriteSeeker, outfile io.WriteSeeker, passwd string, cb Callback) (err error)
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder(iocb io.ReadWriteSeeker) *Decoder
func (*Decoder) SetPassword ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(iocb io.ReadWriteSeeker) *Encoder
func (*Encoder) ProcessFrame ¶
func (*Encoder) ProcessStream ¶
func (*Encoder) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.