def METHOD_NAME(self, size=None, init=False):
    """
    return a buffer of at least the requested size (None: any current size).
    init=True can be given to trigger shrinking of the buffer to the given size.
    """
    if size is not None:
        self.resize(size, init)
    return self.buffer