def METHOD_NAME(self, data: bytes) -> None:
    if not data:
        return
    if isinstance(data, str):
        data = data.encode(self.encoding)
    elif isinstance(data, bytes):
        data = bytearray(data)
    self._read_buffer = data + self._read_buffer