MemoryInputStream is an object implementing the buffer
interface which reads its data from a certain
memory buffer. It is interpreted as an infinite
array of 8-bit chars.
This stream is used for ooxcb protocol parsing.
-
address
-
close()
-
closed
-
fileno()
- We are not using a file descriptor
-
flush()
-
isatty()
-
read(b=None)
-
readable()
-
readall()
-
readinto(b)
-
readline(limit)
-
readlines(hint)
-
seek(offset, whence=0)
- Currently you can not use whence=2.
The stream has no end.
-
seekable()
-
tell()
-
truncate()
- That’s a no-op here. I can’t think of anyone needing that
for a memory buffer, really.
However, it will raise a NotImplementedError. But we can
remove that.
-
writable()
-
write(b)