| 273 | } |
| 274 | |
| 275 | nvimgcodecStatus_t CodeStream::seek(ptrdiff_t offset, int whence) { |
| 276 | try { |
| 277 | assert(io_stream_); |
| 278 | io_stream_->seek(offset, whence); |
| 279 | return NVIMGCODEC_STATUS_SUCCESS; |
| 280 | } catch (std::exception& e) { |
| 281 | return NVIMGCODEC_STATUS_EXECUTION_FAILED; |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | nvimgcodecStatus_t CodeStream::tell(ptrdiff_t* offset) { |
| 286 | try { |
no outgoing calls
no test coverage detected