| 233 | } |
| 234 | |
| 235 | nvimgcodecStatus_t CodeStream::read(size_t* output_size, void* buf, size_t bytes) { |
| 236 | try { |
| 237 | assert(io_stream_); |
| 238 | *output_size = io_stream_->read(buf, bytes); |
| 239 | return NVIMGCODEC_STATUS_SUCCESS; |
| 240 | } catch (std::exception& e) { |
| 241 | return NVIMGCODEC_STATUS_EXECUTION_FAILED; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | nvimgcodecStatus_t CodeStream::write(size_t* output_size, void* buf, size_t bytes) { |
| 246 | try { |
no outgoing calls
no test coverage detected