flex buffer.