protected final synchronized void setBuffer(ByteBuffer to) {
    assert to != null : "Trying to set buffer to null";
    cmd = to;
    cmd.mark();
  }
Set the write buffer for this operation.
src/main/java/net/spy/memcached/protocol/BaseOperationImpl.java