private static void copyMemory(long src, Object dest, long size) {
		long sSize = size;
		while (size > 0) {
			if (size >= 8) {
				$.putLong(dest, sSize - size, $.getLong(null, src));
				size -= 8;
				src += 8;
			} else if (size >= 4) {
				$.putInt(dest, sSize - size, $.getInt(null, src));
				size -= 4;
				src += 4;
			} else if (size >= 2) {
				$.putShort(dest, sSize - size, $.getShort(null, src));
				size -= 2;
				src += 2;
			} else {
				$.putByte(dest, sSize - size, $.getByte(null, src));
				size--;
				src++;
			}
		}
	}