keystore_lib/src/util/ksutil.cpp
int readDataFromFile(const char *fileName, void *data, size_t size)
{
  int res = 0;

  res = readAllDataFromFile(fileName, data, size);
  if (res > 0 && (size_t) res == size)
  {
    res = 0;
  }

  return res;
}
/*
 * Read data from file
 * @param fileName file name
 * @param data input buffer
 * @param size input buffer size
 *
 * @returns 0 on success
 */
Read data from file
@param fileName file name
@param data input buffer
@param size input buffer size

@returns 0 on success
Read data from file @param fileName file name @param data input buffer @param size input buffer size @returns 0 on success
int readDataFromFile(const char *fileName, void *data, size_t size)
{
  int res = 0;
  res = readAllDataFromFile(fileName, data, size);
  if (res > 0 && (size_t) res == size)
  {
    res = 0;
  }
  return res;
}
int readDataFromFile ( const char * fileName , void * data , size_t size ) { int res = 0 ; res = readAllDataFromFile ( fileName , data , size ) ; if ( res > 0 && ( size_t ) res == size ) { res = 0 ; } return res ; }
Read data from file
 @param fileName file name
 @param data input buffer
 @param size input buffer size
Read data from file @param fileName file name @param data input buffer @param size input buffer size