/** * 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; }
void CSflush(CompressedStream *cs){ BSflush(cs->bs); }