Example #1
0
File: bitio.c Project: 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;
}
Example #2
0
void  CSflush(CompressedStream *cs){

   BSflush(cs->bs);

}