MCPcopy Create free account
hub / github.com/dolthub/doltgresql / init

Method init

postgres/parser/parser/scan.go:60–65  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

58}
59
60func (s *scanner) init(str string) {
61 s.in = str
62 s.pos = 0
63 // Preallocate some buffer space for identifiers etc.
64 s.bytesPrealloc = make([]byte, len(str))
65}
66
67// cleanup is used to avoid holding on to memory unnecessarily (for the cases
68// where we reuse a scanner).

Callers 1

makeScannerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected