NjxGetFlashDicCacheSize Function

Description

This function gets the cache size required by the FLASH dictionary.

Syntax

#include <mw/iwnn/iwnnCTR.h>

s16 NjxGetFlashDicCacheSize(
     const IWNN_CLASS* iwnn,                     // Parsing information class
     const IWNN_FILE* fileStream                 // Dictionary file pointer
);

Arguments

NameDescription
IN const IWNN_CLASS* iwnn Parsing information class
An error results if NULL is specified.
IN const IWNN_FILE* fileStream Dictionary file pointer
Specifies a dictionary file pointer for getting the cache size.
An error results if NULL is specified.
Note:
Specify the address of an instance of nn::fs::FileStream.
Abnormal operations will result if an instance of nn::fs::FileInputStream or nn::fs::FileOutputStream is specified.

Return Value

s16 Negative value: Error
Equal to or greater than 0: The cache size

Error Code Description of Error
NJ_ERR_PARAM_ENVIRONMENT_NULL A NULL pointer was specified for iwnn
NJ_ERR_PARAM_STREAM_NULL A NULL pointer was specified for fileStream
NJ_ERR_PARAM_TYPE_INVALID A dictionary file pointer not pointing to the FLASH dictionary was specified
NJ_ERR_STREAM_SEEK_ERR An error occurred when using a seek function that uses file pointers
NJ_ERR_STREAM_READ_ERR An error occurred when using a read function that uses file pointers
NJ_ERR_FORMAT_INVALID An invalid dictionary file pointer was specified

CONFIDENTIAL