MCPcopy Create free account
hub / github.com/brimdata/super / newPreprocess

Function newPreprocess

sio/csvio/preprocess.go:24–32  ·  view source on GitHub ↗
(r io.Reader, delim rune)

Source from the content-addressed store, hash-verified

22}
23
24func newPreprocess(r io.Reader, delim rune) *preprocess {
25 if delim == 0 {
26 delim = ','
27 }
28 return &preprocess{
29 delimiter: delim,
30 scanner: bufio.NewReader(r),
31 }
32}
33
34func (p *preprocess) Read(b []byte) (int, error) {
35 n := len(p.leftover)

Callers 2

TestPreprocessFunction · 0.85
NewReaderFunction · 0.85

Calls 1

NewReaderMethod · 0.45

Tested by 1

TestPreprocessFunction · 0.68