| 55 | // ---------------------------------------------------------------------------------------- |
| 56 | |
| 57 | void entropy_decoder_kernel_1:: |
| 58 | set_stream ( |
| 59 | std::istream& in_ |
| 60 | ) |
| 61 | { |
| 62 | buf_used = 0; |
| 63 | buf = 0; |
| 64 | r = 0; |
| 65 | low = initial_low; |
| 66 | high = initial_high; |
| 67 | target = 0x00000000; |
| 68 | |
| 69 | in = &in_; |
| 70 | streambuf = in_.rdbuf(); |
| 71 | |
| 72 | |
| 73 | |
| 74 | unsigned char ch; |
| 75 | |
| 76 | |
| 77 | streambuf->sgetn((char*)&ch,1); |
| 78 | target = ch; |
| 79 | |
| 80 | target <<= 8; |
| 81 | if (streambuf->sgetn((char*)&ch,1)) |
| 82 | target += ch; |
| 83 | |
| 84 | |
| 85 | target <<= 8; |
| 86 | if (streambuf->sgetn((char*)&ch,1)) |
| 87 | target += ch; |
| 88 | |
| 89 | |
| 90 | target <<= 8; |
| 91 | if (streambuf->sgetn((char*)&ch,1)) |
| 92 | target += ch; |
| 93 | |
| 94 | } |
| 95 | |
| 96 | // ---------------------------------------------------------------------------------------- |
| 97 |
nothing calls this directly
no outgoing calls
no test coverage detected