chunkreader
v3.6.2+incompatible
github.com/htner/pgx/chunkreader
Documentation
pkg.go.dev ↗Types
ChunkReader
type ChunkReader struct {
// contains filtered or unexported fields
}
NewChunkReader
func NewChunkReader(r io.Reader) *ChunkReader
NewChunkReaderEx
func NewChunkReaderEx(r io.Reader, options Options) (*ChunkReader, error)
ChunkReader.Next
func (r *ChunkReader) Next(n int) (buf []byte, err error)
Next returns buf filled with the next n bytes. If an error occurs, buf will be nil.
Options
type Options struct {
MinBufLen int // Minimum buffer length
}