| 187 | Result<int64_t> DoGetSize(); |
| 188 | |
| 189 | Status CheckClosed() const { |
| 190 | if (!is_open_) { |
| 191 | return Status::Invalid("Operation forbidden on closed CudaBufferReader"); |
| 192 | } |
| 193 | return Status::OK(); |
| 194 | } |
| 195 | |
| 196 | std::shared_ptr<CudaBuffer> buffer_; |
| 197 | std::shared_ptr<CudaContext> context_; |