def METHOD_NAME(self, buffer: WriteableBuffer, bufsize: int) -> int:
    """Reads some bytes from the connected remote address, writing
    into the provided buffer. If bufsize <= len(buffer) is given,
    a maximum of bufsize bytes will be read into the buffer. If no
    valid value is given for bufsize, the default is the length of
    the given buffer.
    Suits sockets of type SOCK_STREAM
    Returns an int of number of bytes read.
    :param bytearray buffer: buffer to receive into
    :param int bufsize: optionally, a maximum number of bytes to read."""
    ...