def METHOD_NAME(self, oid_int, state, prev_tid_int=0):
    """
    Queue an object for storage.
    You may queue an object for storage more than once.
    You may queue an object for storage and also delete it.
    Only the most recent of those actions has any effect.
    """
    queue = self._buffer
    queue.seek(0, 2)  # seek to end
    startpos = queue.tell()
    queue.write(state)
    endpos = queue.tell()
    self._buffer_index[oid_int] = (startpos, endpos, prev_tid_int)