private void clear(ByteBuffer response) {
    response.position(0);
    response.limit(response.capacity());
    response.put(getCleanByteArray());
    while (response.remaining() > getCleanByteArray().length) {
      response.put(getCleanByteArray());
    }
    while (response.remaining() > 0) {
      response.put((byte) 0);
    }
    response.clear();
  }
Returns an initialized byteBuffer for sending the reply

@param size size of ByteBuffer
@return the initialized response buffer
geode-memcached/src/main/java/org/apache/geode/internal/memcached/RequestReader.java