public void extend(final int size) {
    Preconditions.checkArgument(size > 0, "Error: The number of bytes to add must be positive");

    final byte[] data = new byte[m_data.length + size];

    System.arraycopy(m_data, 0, data, 0, m_data.length);

    m_data = data;
  }
Adds a number of 0-bytes at the end of the memory chunk.

@param size The number of 0-bytes to add.
@throws IllegalArgumentException Thrown if the number of bytes to add is not positive.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/memmanager/MemoryChunk.java