Пример #1
0
Файл: bitio.c Проект: cran/rcqp
/**
 * Closes a bit input / output stream buffer.
 *
 * If this is an output buffer, it is flushed before closing.
 *
 * @param stream  The stream buffer to close.
 * @return        Always returns true.
 */
int
BSclose(BStream *stream)
{
  if (stream->mode == 'w') 
    BSflush(stream);
  stream->base = NULL;

  return 1;
}
Пример #2
0
void  CSflush(CompressedStream *cs){

   BSflush(cs->bs);

}