Returns the length of a file specified by the path.
#include <nks/fsio.h> int NXFileGetLength ( NXPathCtx_t pathCtx, const void *pathname, NXOffset_t *length);
(IN) Specifies a file system path context. Along with the pathname parameter, it specifies the file for which to return its length.
(IN) Points to a null-terminated Unicode or ASCII string (without wildcards) that specifies the name of the device or console to open.
(OUT) Points to a variable to receive the result.
If successful, returns 0. Otherwise, returns one of the following error codes.
If you know the handle on which the file is already open, call NXFileGetLengthWithHandle.
NXFileGetLength is useful when working with Sun's JVM, which calls the stat function more frequently than any other operation (in order to know how much space to allocate to hold the Java source code). NXFileGetLength is meant to be a high-speed function to optimize using the JVM.