parameters: (f)
docstring: r"""
      >>> import io
      >>> read_uint4(io.BytesIO(b'\xff\x00\x00\x00'))
      255
      >>> read_uint4(io.BytesIO(b'\x00\x00\x00\x80')) == 2**31
      True
docstring_summary: r"""
      >>> import io
      >>> read_uint4(io.BytesIO(b'\xff\x00\x00\x00'))
      255
      >>> read_uint4(io.BytesIO(b'\x00\x00\x00\x80')) == 2**31
      True
docstring_tokens: r >>> import io >>> read_uint4 ( io . BytesIO ( b \ xff \ x00 \ x00 \ x00 )) 255 >>> read_uint4 ( io . BytesIO ( b \ x00 \ x00 \ x00 \ x80 )) == 2 ** 31 True
function: def read_uint4(f):
      r"""
      >>> import io
      >>> read_uint4(io.BytesIO(b'\xff\x00\x00\x00'))
      255
      >>> read_uint4(io.BytesIO(b'\x00\x00\x00\x80')) == 2**31
      True
      """
  
      data = f.read(4)
      if len(data) == 4:
          return _unpack("<I", data)[0]
      raise ValueError("not enough data in stream to read uint4")
function_tokens: def read_uint4 ( f ) : data = f . read ( 4 ) if len ( data ) == 4 : return _unpack ( "<I" , data ) [ 0 ] raise ValueError ( "not enough data in stream to read uint4" )