| 51 | } |
| 52 | |
| 53 | DaemonIO DaemonIO::with_token_callback(const TokenCallback & cb) const { |
| 54 | DaemonIO out = *this; |
| 55 | if (!cb) return out; |
| 56 | TokenCallback existing = out.on_token; |
| 57 | out.on_token = [existing, cb](int32_t tok) -> bool { |
| 58 | if (existing && !existing(tok)) return false; |
| 59 | return cb(tok); |
| 60 | }; |
| 61 | return out; |
| 62 | } |
| 63 | |
| 64 | // Default typed compress: delegates to handle_compress via temp file + DaemonIO collector. |
| 65 | ModelBackend::CompressResult ModelBackend::compress(const CompressRequest & req) { |
no outgoing calls
no test coverage detected