Package wtf :: Module _wtf_cstream
[hide private]
[frames] | no frames]

Module _wtf_cstream

This module provides some speedy stream wrappers for WTF.


Author: Andr\xe9 Malo

Classes [hide private]
  GenericStream
GenericStream(stream[, buffering])
  MinimalSocketStream
MinimalSocketStream(sock)
Functions [hide private]
str
read_exact(stream, size)
Read exactly size bytes from stream, except on EOF
Variables [hide private]
  __package__ = None
Function Details [hide private]

read_exact(stream, size)

 
Read exactly size bytes from stream, except on EOF
Parameters:
  • stream (file) - The stream to read from.
  • size (int) - expected number of bytes
Returns: str
The read bytes