| 293 | } |
| 294 | |
| 295 | nvimgcodecStatus_t CodeStream::size(size_t* size) { |
| 296 | try { |
| 297 | assert(io_stream_); |
| 298 | *size = io_stream_->size(); |
| 299 | return NVIMGCODEC_STATUS_SUCCESS; |
| 300 | } catch (std::exception& e) { |
| 301 | return NVIMGCODEC_STATUS_EXECUTION_FAILED; |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | nvimgcodecStatus_t CodeStream::reserve(size_t bytes) { |
| 306 | try { |
no outgoing calls
no test coverage detected