Class LibCString
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
memcpy
(byte[] dest, byte[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memcpy
(double[] dest, double[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memcpy
(float[] dest, float[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memcpy
(int[] dest, int[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memcpy
(long[] dest, long[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memcpy
(short[] dest, short[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memcpy
(ByteBuffer dest, ByteBuffer src) Copies bytes between memory areas that must not overlap.static long
memcpy
(DoubleBuffer dest, DoubleBuffer src) Copies bytes between memory areas that must not overlap.static long
memcpy
(FloatBuffer dest, FloatBuffer src) Copies bytes between memory areas that must not overlap.static long
Copies bytes between memory areas that must not overlap.static long
memcpy
(LongBuffer dest, LongBuffer src) Copies bytes between memory areas that must not overlap.static long
memcpy
(ShortBuffer dest, ShortBuffer src) Copies bytes between memory areas that must not overlap.static <T extends org.lwjgl.system.CustomBuffer<T>>
longmemcpy
(T dest, T src) Copies bytes between memory areas that must not overlap.static long
memmove
(byte[] dest, byte[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memmove
(double[] dest, double[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memmove
(float[] dest, float[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memmove
(int[] dest, int[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memmove
(long[] dest, long[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memmove
(short[] dest, short[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
memmove
(ByteBuffer dest, ByteBuffer src) Copiescount
bytes from memory areasrc
to memory areadest
.static long
memmove
(DoubleBuffer dest, DoubleBuffer src) Copiescount
bytes from memory areasrc
to memory areadest
.static long
memmove
(FloatBuffer dest, FloatBuffer src) Copiescount
bytes from memory areasrc
to memory areadest
.static long
Copiescount
bytes from memory areasrc
to memory areadest
.static long
memmove
(LongBuffer dest, LongBuffer src) Copiescount
bytes from memory areasrc
to memory areadest
.static long
memmove
(ShortBuffer dest, ShortBuffer src) Copiescount
bytes from memory areasrc
to memory areadest
.static <T extends org.lwjgl.system.CustomBuffer<T>>
longmemmove
(T dest, T src) Copiescount
bytes from memory areasrc
to memory areadest
.static long
memset
(byte[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
static long
memset
(double[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
static long
memset
(float[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
static long
memset
(int[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
static long
memset
(long[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
static long
memset
(short[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
static long
memset
(ByteBuffer dest, int c) Fills a memory area with a constant byte.static long
memset
(DoubleBuffer dest, int c) Fills a memory area with a constant byte.static long
memset
(FloatBuffer dest, int c) Fills a memory area with a constant byte.static long
Fills a memory area with a constant byte.static long
memset
(LongBuffer dest, int c) Fills a memory area with a constant byte.static long
memset
(ShortBuffer dest, int c) Fills a memory area with a constant byte.static <T extends org.lwjgl.system.CustomBuffer<T>>
longmemset
(T dest, int c) Fills memory with a constant byte.static long
nmemcpy
(byte[] dest, byte[] src, long count) Array version of:nmemcpy(long, long, long)
static long
nmemcpy
(double[] dest, double[] src, long count) Array version of:nmemcpy(long, long, long)
static long
nmemcpy
(float[] dest, float[] src, long count) Array version of:nmemcpy(long, long, long)
static long
nmemcpy
(int[] dest, int[] src, long count) Array version of:nmemcpy(long, long, long)
static long
nmemcpy
(long[] dest, long[] src, long count) Array version of:nmemcpy(long, long, long)
static long
nmemcpy
(long dest, long src, long count) Unsafe version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
nmemcpy
(short[] dest, short[] src, long count) Array version of:nmemcpy(long, long, long)
static long
nmemmove
(byte[] dest, byte[] src, long count) Array version of:nmemmove(long, long, long)
static long
nmemmove
(double[] dest, double[] src, long count) Array version of:nmemmove(long, long, long)
static long
nmemmove
(float[] dest, float[] src, long count) Array version of:nmemmove(long, long, long)
static long
nmemmove
(int[] dest, int[] src, long count) Array version of:nmemmove(long, long, long)
static long
nmemmove
(long[] dest, long[] src, long count) Array version of:nmemmove(long, long, long)
static long
nmemmove
(long dest, long src, long count) Unsafe version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
static long
nmemmove
(short[] dest, short[] src, long count) Array version of:nmemmove(long, long, long)
static long
nmemset
(byte[] dest, int c, long count) Array version of:nmemset(long, int, long)
static long
nmemset
(double[] dest, int c, long count) Array version of:nmemset(long, int, long)
static long
nmemset
(float[] dest, int c, long count) Array version of:nmemset(long, int, long)
static long
nmemset
(int[] dest, int c, long count) Array version of:nmemset(long, int, long)
static long
nmemset
(long[] dest, int c, long count) Array version of:nmemset(long, int, long)
static long
nmemset
(long dest, int c, long count) Unsafe version of:memset(java.nio.ByteBuffer, int)
static long
nmemset
(short[] dest, int c, long count) Array version of:nmemset(long, int, long)
static long
nstrerror
(int errnum) Unsafe version of:strerror(int)
static String
strerror
(int errnum) Returns string describing error number.
-
Method Details
-
nmemset
public static long nmemset(long dest, int c, long count) Unsafe version of:memset(java.nio.ByteBuffer, int)
- Parameters:
count
- number of bytes to fill
-
memset
Fills a memory area with a constant byte.- Parameters:
dest
- pointer to the memory area to fillc
- byte to set- Returns:
- the value of
dest
-
memset
Fills a memory area with a constant byte.- Parameters:
dest
- pointer to the memory area to fillc
- byte to set- Returns:
- the value of
dest
-
memset
Fills a memory area with a constant byte.- Parameters:
dest
- pointer to the memory area to fillc
- byte to set- Returns:
- the value of
dest
-
memset
Fills a memory area with a constant byte.- Parameters:
dest
- pointer to the memory area to fillc
- byte to set- Returns:
- the value of
dest
-
memset
Fills a memory area with a constant byte.- Parameters:
dest
- pointer to the memory area to fillc
- byte to set- Returns:
- the value of
dest
-
memset
Fills a memory area with a constant byte.- Parameters:
dest
- pointer to the memory area to fillc
- byte to set- Returns:
- the value of
dest
-
nmemcpy
public static long nmemcpy(long dest, long src, long count) Unsafe version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
- Parameters:
count
- the number of bytes to be copied
-
memcpy
Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memcpy
Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memcpy
Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memcpy
Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memcpy
Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memcpy
Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
nmemmove
public static long nmemmove(long dest, long src, long count) Unsafe version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
- Parameters:
count
- the number of bytes to be copied
-
memmove
Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memmove
Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memmove
Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memmove
Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memmove
Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memmove
Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
nstrerror
public static long nstrerror(int errnum) Unsafe version of:strerror(int)
-
strerror
Returns string describing error number. -
nmemset
public static long nmemset(byte[] dest, int c, long count) Array version of:nmemset(long, int, long)
-
memset
public static long memset(byte[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
-
nmemset
public static long nmemset(short[] dest, int c, long count) Array version of:nmemset(long, int, long)
-
memset
public static long memset(short[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
-
nmemset
public static long nmemset(int[] dest, int c, long count) Array version of:nmemset(long, int, long)
-
memset
public static long memset(int[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
-
nmemset
public static long nmemset(long[] dest, int c, long count) Array version of:nmemset(long, int, long)
-
memset
public static long memset(long[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
-
nmemset
public static long nmemset(float[] dest, int c, long count) Array version of:nmemset(long, int, long)
-
memset
public static long memset(float[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
-
nmemset
public static long nmemset(double[] dest, int c, long count) Array version of:nmemset(long, int, long)
-
memset
public static long memset(double[] dest, int c) Array version of:memset(java.nio.ByteBuffer, int)
-
nmemcpy
public static long nmemcpy(byte[] dest, byte[] src, long count) Array version of:nmemcpy(long, long, long)
-
memcpy
public static long memcpy(byte[] dest, byte[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemcpy
public static long nmemcpy(short[] dest, short[] src, long count) Array version of:nmemcpy(long, long, long)
-
memcpy
public static long memcpy(short[] dest, short[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemcpy
public static long nmemcpy(int[] dest, int[] src, long count) Array version of:nmemcpy(long, long, long)
-
memcpy
public static long memcpy(int[] dest, int[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemcpy
public static long nmemcpy(long[] dest, long[] src, long count) Array version of:nmemcpy(long, long, long)
-
memcpy
public static long memcpy(long[] dest, long[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemcpy
public static long nmemcpy(float[] dest, float[] src, long count) Array version of:nmemcpy(long, long, long)
-
memcpy
public static long memcpy(float[] dest, float[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemcpy
public static long nmemcpy(double[] dest, double[] src, long count) Array version of:nmemcpy(long, long, long)
-
memcpy
public static long memcpy(double[] dest, double[] src) Array version of:memcpy(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemmove
public static long nmemmove(byte[] dest, byte[] src, long count) Array version of:nmemmove(long, long, long)
-
memmove
public static long memmove(byte[] dest, byte[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemmove
public static long nmemmove(short[] dest, short[] src, long count) Array version of:nmemmove(long, long, long)
-
memmove
public static long memmove(short[] dest, short[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemmove
public static long nmemmove(int[] dest, int[] src, long count) Array version of:nmemmove(long, long, long)
-
memmove
public static long memmove(int[] dest, int[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemmove
public static long nmemmove(long[] dest, long[] src, long count) Array version of:nmemmove(long, long, long)
-
memmove
public static long memmove(long[] dest, long[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemmove
public static long nmemmove(float[] dest, float[] src, long count) Array version of:nmemmove(long, long, long)
-
memmove
public static long memmove(float[] dest, float[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
nmemmove
public static long nmemmove(double[] dest, double[] src, long count) Array version of:nmemmove(long, long, long)
-
memmove
public static long memmove(double[] dest, double[] src) Array version of:memmove(java.nio.ByteBuffer, java.nio.ByteBuffer)
-
memset
public static <T extends org.lwjgl.system.CustomBuffer<T>> long memset(T dest, int c) Fills memory with a constant byte.- Parameters:
dest
- pointer to destinationc
- character to set- Returns:
- the value of
dest
-
memcpy
public static <T extends org.lwjgl.system.CustomBuffer<T>> long memcpy(T dest, T src) Copies bytes between memory areas that must not overlap.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-
memmove
public static <T extends org.lwjgl.system.CustomBuffer<T>> long memmove(T dest, T src) Copiescount
bytes from memory areasrc
to memory areadest
.The memory areas may overlap: copying takes place as though the bytes in
src
are first copied into a temporary array that does not overlapsrc
ordest
, and the bytes are then copied from the temporary array todest
.- Parameters:
dest
- pointer to the destination memory areasrc
- pointer to the source memory area- Returns:
- the value of
dest
-