MCPcopy Create free account
hub / github.com/creatale/node-dv / WritePermConfig

Function WritePermConfig

deps/tesseract/classify/adaptive.cpp:535–544  ·  view source on GitHub ↗

---------------------------------------------------------------------------*/ * This routine writes a binary representation of a * permanent configuration to File. * * @param File open file to write Config to * @param Config permanent config to write to File * * @note Globals: none * @note Exceptions: none * @note History: Tue Mar 19 13:55:44 1991, DSJ, Created. */

Source from the content-addressed store, hash-verified

533 * @note History: Tue Mar 19 13:55:44 1991, DSJ, Created.
534 */
535void WritePermConfig(FILE *File, PERM_CONFIG Config) {
536 uinT8 NumAmbigs = 0;
537
538 assert (Config != NULL);
539 while (Config->Ambigs[NumAmbigs] > 0) ++NumAmbigs;
540
541 fwrite((char *) &NumAmbigs, sizeof(uinT8), 1, File);
542 fwrite(Config->Ambigs, sizeof(UNICHAR_ID), NumAmbigs, File);
543 fwrite(&(Config->FontinfoId), sizeof(int), 1, File);
544} /* WritePermConfig */
545
546
547/*---------------------------------------------------------------------------*/

Callers 1

WriteAdaptedClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected