src/main/java/li/cil/oc2/common/vm/Allocator.java
/**
     * Tries to claim the specified amount of memory using the specified {@code handle}.
     * <p>
     * Claimed memory <em>must</em> be returned using {@link #freeMemory(UUID)} to prevent leaks.
     *
     * @param handle the handle to use for claiming memory.
     * @param size   the amount of memory to claim.
     * @return {@code true} if the memory was successfully claimed; {@code false} otherwise.
     */
Tries to claim the specified amount of memory using the specified  handle.

Claimed memory must be returned using  #freeMemory(UUID) to prevent leaks.

@param handle the handle to use for claiming memory.
@param size   the amount of memory to claim.
@return  true if the memory was successfully claimed;  false otherwise.
Tries to claim the specified amount of memory using the specified handle . Claimed memory must be returned using #freeMemory ( UUID ) to prevent leaks . @param handle the handle to use for claiming memory . @param size the amount of memory to claim . @return true if the memory was successfully claimed ; false otherwise .
public static boolean claimMemory(final UUID handle, final int size) {
        if (!checkArgs(handle, size)) {
            return false;
        }
        if (size != 0) {
            ALLOCATIONS.put(handle, new Allocation(size));
            allocated += size;
        }
        return true;
    }
public static boolean claimMemory ( final UUID handle , final int size ) { if ( ! checkArgs ( handle , size ) ) { return false ; } if ( size != 0 ) { ALLOCATIONS . put ( handle , new Allocation ( size ) ) ; allocated += size ; } return true ; }
Tries to claim the specified amount of memory using the specified {@code handle}.
Tries to claim the specified amount of memory using the specified { @code handle } .