Package org.lwjgl.system.libc
Class LibCStdio
- java.lang.Object
-
- org.lwjgl.system.libc.LibCStdio
-
public class LibCStdio extends java.lang.ObjectNative bindings to stdio.h.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvsnprintf(long buffer, long buf_size, long format, long vlist)Unsafe version of:vsnprintf(java.nio.ByteBuffer, java.nio.ByteBuffer, long)static intnvsscanf(long buffer, long format, long vlist)Unsafe version of:vsscanf(java.nio.ByteBuffer, java.nio.ByteBuffer, long)static intvsnprintf(java.nio.ByteBuffer buffer, java.lang.CharSequence format, long vlist)Loads the data from the locations, defined byvlist, converts them to character string equivalents and writes the results to a character string buffer.static intvsnprintf(java.nio.ByteBuffer buffer, java.nio.ByteBuffer format, long vlist)Loads the data from the locations, defined byvlist, converts them to character string equivalents and writes the results to a character string buffer.static intvsscanf(java.lang.CharSequence buffer, java.lang.CharSequence format, long vlist)Reads data from the null-terminated character stringbuffer, interprets it according toformatand stores the results into locations defined byvlist.static intvsscanf(java.nio.ByteBuffer buffer, java.nio.ByteBuffer format, long vlist)Reads data from the null-terminated character stringbuffer, interprets it according toformatand stores the results into locations defined byvlist.
-
-
-
Method Detail
-
nvsscanf
public static int nvsscanf(long buffer, long format, long vlist)Unsafe version of:vsscanf(java.nio.ByteBuffer, java.nio.ByteBuffer, long)
-
vsscanf
public static int vsscanf(java.nio.ByteBuffer buffer, java.nio.ByteBuffer format, long vlist) public static int vsscanf(java.lang.CharSequence buffer, java.lang.CharSequence format, long vlist)Reads data from the null-terminated character stringbuffer, interprets it according toformatand stores the results into locations defined byvlist.- Parameters:
buffer- pointer to a null-terminated character string to read fromformat- pointer to a null-terminated character string specifying how to read the inputvlist- variable argument list containing the receiving arguments- Returns:
- the number of receiving arguments successfully assigned, or
EOFif read failure occurs before the first receiving argument was assigned
-
nvsnprintf
public static int nvsnprintf(long buffer, long buf_size, long format, long vlist)Unsafe version of:vsnprintf(java.nio.ByteBuffer, java.nio.ByteBuffer, long)- Parameters:
buf_size- up tobuf_size - 1characters may be written, plus the null terminator
-
vsnprintf
public static int vsnprintf(@Nullable java.nio.ByteBuffer buffer, java.nio.ByteBuffer format, long vlist) public static int vsnprintf(@Nullable java.nio.ByteBuffer buffer, java.lang.CharSequence format, long vlist)Loads the data from the locations, defined byvlist, converts them to character string equivalents and writes the results to a character string buffer.- Parameters:
buffer- pointer to a character string to write toformat- pointer to a null-terminated character string specifying how to interpret the datavlist- variable argument list containing the data to print- Returns:
- the number of characters written if successful or negative value if an error occurred. If the resulting string gets truncated due to
buf_sizelimit, function returns the total number of characters (not including the terminating null-byte) which would have been written, if the limit was not imposed.
-
-