MCPcopy Create free account
hub / github.com/LAStools/LAStools / flushBits

Method flushBits

LASzip/src/bytestreamout.hpp:58–69  ·  view source on GitHub ↗

called after writing bits before closing or writing bytes */

Source from the content-addressed store, hash-verified

56 };
57/* called after writing bits before closing or writing bytes */
58 inline BOOL flushBits()
59 {
60 if (num_buffer)
61 {
62 U32 num_zero_bits = 32 - num_buffer;
63 U32 output_bits = (U32)(bit_buffer >> num_zero_bits);
64 bit_buffer = 0;
65 num_buffer = 0;
66 return put32bitsLE((U8*)&output_bits);
67 }
68 return TRUE;
69 };
70/* write a single byte */
71 virtual BOOL putByte(U8 byte) = 0;
72/* write an array of bytes */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected