All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.versions.16.org.lwjgl.system.MultiReleaseMemCopy Maven / Gradle / Ivy

There is a newer version: 3.3.5
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 */
package org.lwjgl.system;

import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;

final class MultiReleaseMemCopy {

    static {
        apiLog("Java 16 memcpy enabled");
    }

    private MultiReleaseMemCopy() {
    }

    static void copy(long src, long dst, long bytes) {
        // Much better performance on Java 16+
        UNSAFE.copyMemory(null, src, null, dst, bytes);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy