private MemoryChunk findChunk(final long address) {
    Preconditions.checkArgument(address >= 0, "Error: Address can't be less than 0");

    for (final MemoryChunk chunk : m_chunks) {
      if ((address >= chunk.getAddress()) && (address < (chunk.getAddress() + chunk.getLength()))) {
        return chunk;
      }
    }

    return null;
  }
Finds the chunk that contains a given address.

@param address The address to search for.
@return The chunk the address belongs to or null if no such chunk exists.
@throws IllegalArgumentException Thrown if the address is less than 0.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/memmanager/Memory.java