github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/mime/quotedprintable/reader.go (about)

     1  // Copyright 2012 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // パッケージquotedprintableは、RFC 2045で指定されているquoted-printableエンコーディングを実装します。
     6  package quotedprintable
     7  
     8  import (
     9  	"github.com/shogo82148/std/bufio"
    10  	"github.com/shogo82148/std/io"
    11  )
    12  
    13  // Readerは、quoted-printableデコーダーです。
    14  type Reader struct {
    15  	br   *bufio.Reader
    16  	rerr error
    17  	line []byte
    18  }
    19  
    20  // NewReaderは、rからデコードするquoted-printableリーダーを返します。
    21  func NewReader(r io.Reader) *Reader
    22  
    23  // Readは、基礎となるリーダーからquoted-printableデータを読み取り、デコードします。
    24  func (r *Reader) Read(p []byte) (n int, err error)