Top Description Constructors Methods
org.lwjgl.system.libc

public Class LibCString

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to string.h.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long

Returns:

the value of dest
memcpy
(ByteBuffer
pointer to the destination memory area
dest
,
ByteBuffer
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long

Returns:

the value of dest
memcpy
(ShortBuffer
pointer to the destination memory area
dest
,
ShortBuffer
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long

Returns:

the value of dest
memcpy
(IntBuffer
pointer to the destination memory area
dest
,
IntBuffer
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long

Returns:

the value of dest
memcpy
(LongBuffer
pointer to the destination memory area
dest
,
LongBuffer
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long

Returns:

the value of dest
memcpy
(FloatBuffer
pointer to the destination memory area
dest
,
FloatBuffer
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long

Returns:

the value of dest
memcpy
(DoubleBuffer
pointer to the destination memory area
dest
,
DoubleBuffer
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long
memcpy(byte[] dest, byte[] src)

Array version of: memcpy

public static long
memcpy(short[] dest, short[] src)

Array version of: memcpy

public static long
memcpy(int[] dest, int[] src)

Array version of: memcpy

public static long
memcpy(long[] dest, long[] src)

Array version of: memcpy

public static long
memcpy(float[] dest, float[] src)

Array version of: memcpy

public static long
memcpy(double[] dest, double[] src)

Array version of: memcpy

public static <T extends CustomBuffer<T>> long

Returns:

the value of dest
memcpy
(T
pointer to the destination memory area
dest
,
T
pointer to the source memory area
src
)

Copies bytes between memory areas that must not overlap.

public static long

Returns:

the value of dest
memmove
(ByteBuffer
pointer to the destination memory area
dest
,
ByteBuffer
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long

Returns:

the value of dest
memmove
(ShortBuffer
pointer to the destination memory area
dest
,
ShortBuffer
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long

Returns:

the value of dest
memmove
(IntBuffer
pointer to the destination memory area
dest
,
IntBuffer
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long

Returns:

the value of dest
memmove
(LongBuffer
pointer to the destination memory area
dest
,
LongBuffer
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long

Returns:

the value of dest
memmove
(FloatBuffer
pointer to the destination memory area
dest
,
FloatBuffer
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long

Returns:

the value of dest
memmove
(DoubleBuffer
pointer to the destination memory area
dest
,
DoubleBuffer
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long
memmove(byte[] dest, byte[] src)

Array version of: memmove

public static long
memmove(short[] dest, short[] src)

Array version of: memmove

public static long
memmove(int[] dest, int[] src)

Array version of: memmove

public static long
memmove(long[] dest, long[] src)

Array version of: memmove

public static long
memmove(float[] dest, float[] src)

Array version of: memmove

public static long
memmove(double[] dest, double[] src)

Array version of: memmove

public static <T extends CustomBuffer<T>> long

Returns:

the value of dest
memmove
(T
pointer to the destination memory area
dest
,
T
pointer to the source memory area
src
)

Copies count bytes from memory area src to memory area dest.

public static long

Returns:

the value of dest
memset
(ByteBuffer
pointer to the memory area to fill
dest
,
int
byte to set
c
)

Fills a memory area with a constant byte.

public static long

Returns:

the value of dest
memset
(ShortBuffer
pointer to the memory area to fill
dest
,
int
byte to set
c
)

Fills a memory area with a constant byte.

public static long

Returns:

the value of dest
memset
(IntBuffer
pointer to the memory area to fill
dest
,
int
byte to set
c
)

Fills a memory area with a constant byte.

public static long

Returns:

the value of dest
memset
(LongBuffer
pointer to the memory area to fill
dest
,
int
byte to set
c
)

Fills a memory area with a constant byte.

public static long

Returns:

the value of dest
memset
(FloatBuffer
pointer to the memory area to fill
dest
,
int
byte to set
c
)

Fills a memory area with a constant byte.

public static long

Returns:

the value of dest
memset
(DoubleBuffer
pointer to the memory area to fill
dest
,
int
byte to set
c
)

Fills a memory area with a constant byte.

public static long
memset(byte[] dest, int c)

Array version of: memset

public static long
memset(short[] dest, int c)

Array version of: memset

public static long
memset(int[] dest, int c)

Array version of: memset

public static long
memset(long[] dest, int c)

Array version of: memset

public static long
memset(float[] dest, int c)

Array version of: memset

public static long
memset(double[] dest, int c)

Array version of: memset

public static <T extends CustomBuffer<T>> long

Returns:

the value of dest
memset
(T
pointer to destination
dest
,
int
character to set
c
)

Fills memory with a constant byte.

public static native long
nmemcpy(long dest, long src, long
the number of bytes to be copied
count
)

Unsafe version of: memcpy

public static native long
nmemcpy(byte[] dest, byte[] src, long count)

Array version of: nmemcpy

public static native long
nmemcpy(short[] dest, short[] src, long count)

Array version of: nmemcpy

public static native long
nmemcpy(int[] dest, int[] src, long count)

Array version of: nmemcpy

public static native long
nmemcpy(long[] dest, long[] src, long count)

Array version of: nmemcpy

public static native long
nmemcpy(float[] dest, float[] src, long count)

Array version of: nmemcpy

public static native long
nmemcpy(double[] dest, double[] src, long count)

Array version of: nmemcpy

public static native long
nmemmove(long dest, long src, long
the number of bytes to be copied
count
)

Unsafe version of: memmove

public static native long
nmemmove(byte[] dest, byte[] src, long count)

Array version of: nmemmove

public static native long
nmemmove(short[] dest, short[] src, long count)

Array version of: nmemmove

public static native long
nmemmove(int[] dest, int[] src, long count)

Array version of: nmemmove

public static native long
nmemmove(long[] dest, long[] src, long count)

Array version of: nmemmove

public static native long
nmemmove(float[] dest, float[] src, long count)

Array version of: nmemmove

public static native long
nmemmove(double[] dest, double[] src, long count)

Array version of: nmemmove

public static native long
nmemset(long dest, int c, long
number of bytes to fill
count
)

Unsafe version of: memset

public static native long
nmemset(byte[] dest, int c, long count)

Array version of: nmemset

public static native long
nmemset(short[] dest, int c, long count)

Array version of: nmemset

public static native long
nmemset(int[] dest, int c, long count)

Array version of: nmemset

public static native long
nmemset(long[] dest, int c, long count)

Array version of: nmemset

public static native long
nmemset(float[] dest, int c, long count)

Array version of: nmemset

public static native long
nmemset(double[] dest, int c, long count)

Array version of: nmemset

public static native long
nstrerror(int errnum)

Unsafe version of: strerror

public static native long
nstrlen(long str)

public static String
strerror(int errnum)

Returns string describing error number.

public static long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LibCStringback to summary
protected LibCString()

Method Detail

memcpyback to summary
public static long memcpy(ByteBuffer dest, ByteBuffer src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:ByteBuffer

pointer to the destination memory area

src:ByteBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(ShortBuffer dest, ShortBuffer src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:ShortBuffer

pointer to the destination memory area

src:ShortBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(IntBuffer dest, IntBuffer src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:IntBuffer

pointer to the destination memory area

src:IntBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(LongBuffer dest, LongBuffer src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:LongBuffer

pointer to the destination memory area

src:LongBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(FloatBuffer dest, FloatBuffer src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:FloatBuffer

pointer to the destination memory area

src:FloatBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(DoubleBuffer dest, DoubleBuffer src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:DoubleBuffer

pointer to the destination memory area

src:DoubleBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(byte[] dest, byte[] src)

Array version of: memcpy

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(short[] dest, short[] src)

Array version of: memcpy

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(int[] dest, int[] src)

Array version of: memcpy

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(long[] dest, long[] src)

Array version of: memcpy

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(float[] dest, float[] src)

Array version of: memcpy

Annotations
@NativeType:void *
memcpyback to summary
public static long memcpy(double[] dest, double[] src)

Array version of: memcpy

Annotations
@NativeType:void *
memcpyback to summary
public static <T extends CustomBuffer<T>> long memcpy(T dest, T src)

Copies bytes between memory areas that must not overlap.

Parameters
dest:T

pointer to the destination memory area

src:T

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(ByteBuffer dest, ByteBuffer src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:ByteBuffer

pointer to the destination memory area

src:ByteBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(ShortBuffer dest, ShortBuffer src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:ShortBuffer

pointer to the destination memory area

src:ShortBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(IntBuffer dest, IntBuffer src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:IntBuffer

pointer to the destination memory area

src:IntBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(LongBuffer dest, LongBuffer src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:LongBuffer

pointer to the destination memory area

src:LongBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(FloatBuffer dest, FloatBuffer src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:FloatBuffer

pointer to the destination memory area

src:FloatBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(DoubleBuffer dest, DoubleBuffer src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:DoubleBuffer

pointer to the destination memory area

src:DoubleBuffer

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(byte[] dest, byte[] src)

Array version of: memmove

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(short[] dest, short[] src)

Array version of: memmove

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(int[] dest, int[] src)

Array version of: memmove

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(long[] dest, long[] src)

Array version of: memmove

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(float[] dest, float[] src)

Array version of: memmove

Annotations
@NativeType:void *
memmoveback to summary
public static long memmove(double[] dest, double[] src)

Array version of: memmove

Annotations
@NativeType:void *
memmoveback to summary
public static <T extends CustomBuffer<T>> long memmove(T dest, T src)

Copies count bytes from memory area src to memory area dest.

The memory areas may overlap: copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest.

Parameters
dest:T

pointer to the destination memory area

src:T

pointer to the source memory area

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(ByteBuffer dest, int c)

Fills a memory area with a constant byte.

Parameters
dest:ByteBuffer

pointer to the memory area to fill

c:int

byte to set

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(ShortBuffer dest, int c)

Fills a memory area with a constant byte.

Parameters
dest:ShortBuffer

pointer to the memory area to fill

c:int

byte to set

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(IntBuffer dest, int c)

Fills a memory area with a constant byte.

Parameters
dest:IntBuffer

pointer to the memory area to fill

c:int

byte to set

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(LongBuffer dest, int c)

Fills a memory area with a constant byte.

Parameters
dest:LongBuffer

pointer to the memory area to fill

c:int

byte to set

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(FloatBuffer dest, int c)

Fills a memory area with a constant byte.

Parameters
dest:FloatBuffer

pointer to the memory area to fill

c:int

byte to set

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(DoubleBuffer dest, int c)

Fills a memory area with a constant byte.

Parameters
dest:DoubleBuffer

pointer to the memory area to fill

c:int

byte to set

Returns:long

the value of dest

Annotations
@NativeType:void *
memsetback to summary
public static long memset(byte[] dest, int c)

Array version of: memset

Annotations
@NativeType:void *
memsetback to summary
public static long memset(short[] dest, int c)

Array version of: memset

Annotations
@NativeType:void *
memsetback to summary
public static long memset(int[] dest, int c)

Array version of: memset

Annotations
@NativeType:void *
memsetback to summary
public static long memset(long[] dest, int c)

Array version of: memset

Annotations
@NativeType:void *
memsetback to summary
public static long memset(float[] dest, int c)

Array version of: memset

Annotations
@NativeType:void *
memsetback to summary
public static long memset(double[] dest, int c)

Array version of: memset

Annotations
@NativeType:void *
memsetback to summary
public static <T extends CustomBuffer<T>> long memset(T dest, int c)

Fills memory with a constant byte.

Parameters
dest:T

pointer to destination

c:int

character to set

Returns:long

the value of dest

Annotations
@NativeType:void *
nmemcpyback to summary
public static native long nmemcpy(long dest, long src, long count)

Unsafe version of: memcpy

Parameters
count:long

the number of bytes to be copied

nmemcpyback to summary
public static native long nmemcpy(byte[] dest, byte[] src, long count)

Array version of: nmemcpy

nmemcpyback to summary
public static native long nmemcpy(short[] dest, short[] src, long count)

Array version of: nmemcpy

nmemcpyback to summary
public static native long nmemcpy(int[] dest, int[] src, long count)

Array version of: nmemcpy

nmemcpyback to summary
public static native long nmemcpy(long[] dest, long[] src, long count)

Array version of: nmemcpy

nmemcpyback to summary
public static native long nmemcpy(float[] dest, float[] src, long count)

Array version of: nmemcpy

nmemcpyback to summary
public static native long nmemcpy(double[] dest, double[] src, long count)

Array version of: nmemcpy

nmemmoveback to summary
public static native long nmemmove(long dest, long src, long count)

Unsafe version of: memmove

Parameters
count:long

the number of bytes to be copied

nmemmoveback to summary
public static native long nmemmove(byte[] dest, byte[] src, long count)

Array version of: nmemmove

nmemmoveback to summary
public static native long nmemmove(short[] dest, short[] src, long count)

Array version of: nmemmove

nmemmoveback to summary
public static native long nmemmove(int[] dest, int[] src, long count)

Array version of: nmemmove

nmemmoveback to summary
public static native long nmemmove(long[] dest, long[] src, long count)

Array version of: nmemmove

nmemmoveback to summary
public static native long nmemmove(float[] dest, float[] src, long count)

Array version of: nmemmove

nmemmoveback to summary
public static native long nmemmove(double[] dest, double[] src, long count)

Array version of: nmemmove

nmemsetback to summary
public static native long nmemset(long dest, int c, long count)

Unsafe version of: memset

Parameters
count:long

number of bytes to fill

nmemsetback to summary
public static native long nmemset(byte[] dest, int c, long count)

Array version of: nmemset

nmemsetback to summary
public static native long nmemset(short[] dest, int c, long count)

Array version of: nmemset

nmemsetback to summary
public static native long nmemset(int[] dest, int c, long count)

Array version of: nmemset

nmemsetback to summary
public static native long nmemset(long[] dest, int c, long count)

Array version of: nmemset

nmemsetback to summary
public static native long nmemset(float[] dest, int c, long count)

Array version of: nmemset

nmemsetback to summary
public static native long nmemset(double[] dest, int c, long count)

Array version of: nmemset

nstrerrorback to summary
public static native long nstrerror(int errnum)

Unsafe version of: strerror

nstrlenback to summary
public static native long nstrlen(long str)
strerrorback to summary
public static String strerror(int errnum)

Returns string describing error number.

Annotations
@Nullable
@NativeType:char *
strlenback to summary
public static long strlen(ByteBuffer str)
Annotations
@NativeType:size_t