Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PierreGode/Ragnar
/ peek
Method
peek
pager_lib/pyasn1/codec/streaming.py:28–31 ·
view source on GitHub ↗
(self, n)
Source
from the content-addressed store, hash-verified
26
self._markedPosition = 0
27
28
def
peek(self, n):
29
result = self.read(n)
30
self._cache.seek(-len(result), os.SEEK_CUR)
31
return
result
32
33
def
seekable(self):
34
return
True
Callers
1
peekIntoStream
Function · 0.80
Calls
2
read
Method · 0.95
seek
Method · 0.80
Tested by
no test coverage detected