META-INF.versions.16.org.lwjgl.system.MultiReleaseMemCopy Maven / Gradle / Ivy
/*
* 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