(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
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
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
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")
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" )