def METHOD_NAME(self, data):
    """Enqueue ``data``."""
    try:
        data = memoryview(data)
    except TypeError:
        data = memoryview(bytes(data))
    if not data:
        return
    self._length += len(data)
    self._wtotal += len(data)
    self._queue.append(data)