| 53 | // ---------------------------------------------------------------------------------------- |
| 54 | |
| 55 | void entropy_encoder_kernel_2:: |
| 56 | set_stream ( |
| 57 | std::ostream& out_ |
| 58 | ) |
| 59 | { |
| 60 | if (out != 0) |
| 61 | { |
| 62 | // if a stream is currently set then flush the buffers to it before |
| 63 | // we switch to the new stream |
| 64 | flush(); |
| 65 | } |
| 66 | |
| 67 | out = &out_; |
| 68 | streambuf = out_.rdbuf(); |
| 69 | |
| 70 | // reset the encoder state |
| 71 | low = initial_low; |
| 72 | high = initial_high; |
| 73 | } |
| 74 | |
| 75 | // ---------------------------------------------------------------------------------------- |
| 76 |
nothing calls this directly
no outgoing calls
no test coverage detected