Home | History | Annotate | Download | only in lzw

Lines Matching defs:Write

25 func (e *errWriteCloser) Write([]byte) (int, error) {
51 // order, write, bits, nBits and width are the state for
54 write func(*encoder, uint32) error
63 // savedCode is the accumulated code at the end of the most recent Write
67 // will make any future Write calls return errClosed
119 if err := e.write(e, clear); err != nil {
133 // Write writes a compressed representation of p to e's underlying writer.
134 func (e *encoder) Write(p []byte) (n int, err error) {
170 // Otherwise, write the current code, and literal becomes the start of
172 if e.err = e.write(e, code); e.err != nil {
207 // Make any future calls to Write return errClosed.
209 // Write the savedCode if valid.
211 if err := e.write(e, e.savedCode); err != nil {
218 // Write the eof code.
220 if err := e.write(e, eof); err != nil {
223 // Write the final bits.
242 var write func(*encoder, uint32) error
245 write = (*encoder).writeLSB
247 write = (*encoder).writeMSB
262 write: write,