#include <cmath>#include <string>#include <assert.h>#include "util.h"#include "mfstream.h"#include "mempool.h"#include "htable.h"#include "dictionary.h"#include "n_gram.h"#include "ngramcache.h"#include "ngramtable.h"#include "normcache.h"#include "interplm.h"#include "mdiadapt.h"#include "shiftlm.h"#include "lmtable.h"Go to the source code of this file.
Functions | |
| int | swapbytes (char *p, int sz, int n) |
| void | fwritex (char *p, int sz, int n, FILE *f) |
| void | ifwrite (long loc, void *ptr, int size, int, FILE *f) |
| void | writeNull (unsigned short nullCode, float nullProb, FILE *f) |
| void fwritex | ( | char * | p, | |
| int | sz, | |||
| int | n, | |||
| FILE * | f | |||
| ) |
Definition at line 688 of file mdiadapt.cpp.
References swapbytes().
Referenced by ifwrite(), mdiadaptlm::saveASR(), and writeNull().


| void ifwrite | ( | long | loc, | |
| void * | ptr, | |||
| int | size, | |||
| int | , | |||
| FILE * | f | |||
| ) |
Definition at line 701 of file mdiadapt.cpp.
References fseek(), ftell(), and fwritex().
Referenced by mdiadaptlm::saveASR().


| int swapbytes | ( | char * | p, | |
| int | sz, | |||
| int | n | |||
| ) |
Definition at line 676 of file mdiadapt.cpp.
Referenced by fwritex().

| void writeNull | ( | unsigned short | nullCode, | |
| float | nullProb, | |||
| FILE * | f | |||
| ) |
Definition at line 716 of file mdiadapt.cpp.
References fwritex().
Referenced by mdiadaptlm::saveASR().


1.5.9