MCPcopy Index your code
hub / github.com/clips/pattern / fillbuf

Method fillbuf

pattern/web/pdf/psparser.py:192–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 return
191
192 def fillbuf(self):
193 if self.charpos < len(self.buf): return
194 # fetch next chunk.
195 self.bufpos = self.fp.tell()
196 self.buf = self.fp.read(self.BUFSIZ)
197 if not self.buf:
198 raise PSEOF('Unexpected EOF')
199 self.charpos = 0
200 return
201
202 def nextline(self):
203 """Fetches a next line that ends either with \\r or \\n.

Callers 2

nextlineMethod · 0.95
nexttokenMethod · 0.95

Calls 4

lenFunction · 0.85
PSEOFClass · 0.85
tellMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected