/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(CharBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 1)); }
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(CharBuffer src, CharBuffer dst) { if (CHECKS) { check((Buffer)dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 1)); }
/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(ShortBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 1)); }
/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(FloatBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 2)); }
/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(DoubleBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 3)); }
/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(LongBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 3)); }
/** * Sets all bytes in a specified block of memory to a fixed value (usually zero). * * @param ptr the starting memory address * @param value the value to set (memSet will convert it to unsigned byte) */ public static void memSet(IntBuffer ptr, int value) { memSet(memAddress(ptr), value, apiGetBytes(ptr.remaining(), 2)); }
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(LongBuffer src, LongBuffer dst) { if (CHECKS) { check(dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 3)); }
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(DoubleBuffer src, DoubleBuffer dst) { if (CHECKS) { check(dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 3)); }
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(ShortBuffer src, ShortBuffer dst) { if (CHECKS) { check(dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 1)); }
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(IntBuffer src, IntBuffer dst) { if (CHECKS) { check(dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 2)); }
/** * Sets all bytes in a specified block of memory to a copy of another block. * * @param src the source memory address * @param dst the destination memory address */ public static void memCopy(FloatBuffer src, FloatBuffer dst) { if (CHECKS) { check(dst, src.remaining()); } MultiReleaseMemCopy.copy(memAddress(src), memAddress(dst), apiGetBytes(src.remaining(), 2)); }