parameters: (f)
docstring: r"""
      >>> import io
      >>> read_uint8(io.BytesIO(b'\xff\x00\x00\x00\x00\x00\x00\x00'))
      255
      >>> read_uint8(io.BytesIO(b'\xff' * 8)) == 2**64-1
      True
docstring_summary: r"""
      >>> import io
      >>> read_uint8(io.BytesIO(b'\xff\x00\x00\x00\x00\x00\x00\x00'))
      255
      >>> read_uint8(io.BytesIO(b'\xff' * 8)) == 2**64-1
      True
docstring_tokens: r >>> import io >>> read_uint8 ( io . BytesIO ( b \ xff \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 )) 255 >>> read_uint8 ( io . BytesIO ( b \ xff * 8 )) == 2 ** 64 - 1 True
function: def read_uint8(f):
      r"""
      >>> import io
      >>> read_uint8(io.BytesIO(b'\xff\x00\x00\x00\x00\x00\x00\x00'))
      255
      >>> read_uint8(io.BytesIO(b'\xff' * 8)) == 2**64-1
      True
      """
  
      data = f.read(8)
      if len(data) == 8:
          return _unpack("<Q", data)[0]
      raise ValueError("not enough data in stream to read uint8")
function_tokens: def read_uint8 ( f ) : data = f . read ( 8 ) if len ( data ) == 8 : return _unpack ( "<Q" , data ) [ 0 ] raise ValueError ( "not enough data in stream to read uint8" )