Home | History | Annotate | Download | only in quotedprintable

Lines Matching refs:Writer

11 // A Writer is a quoted-printable writer that implements io.WriteCloser.
12 type Writer struct {
13 // Binary mode treats the writer's input as pure binary and processes end of
17 w io.Writer
23 // NewWriter returns a new Writer that writes to w.
24 func NewWriter(w io.Writer) *Writer {
25 return &Writer{w: w}
29 // underlying io.Writer. It limits line length to 76 characters. The encoded
30 // bytes are not necessarily flushed until the Writer is closed.
31 func (w *Writer) Write(p []byte) (n int, err error) {
65 // Close closes the Writer, flushing any unwritten data to the underlying
66 // io.Writer, but does not close the underlying io.Writer.
67 func (w *Writer) Close() error {
76 func (w *Writer) write(p []byte) error {
112 func (w *Writer) encode(b byte) error {
130 func (w *Writer) checkLastByte() error {
146 func (w *Writer) insertSoftLineBreak() error {
153 func (w *Writer) insertCRLF() error {
161 func (w *Writer) flush() error {