| 43 | namespace cuda { |
| 44 | |
| 45 | Result<std::shared_ptr<CudaBuffer>> SerializeRecordBatch(const RecordBatch& batch, |
| 46 | CudaContext* ctx) { |
| 47 | ARROW_ASSIGN_OR_RAISE(auto buf, |
| 48 | ipc::SerializeRecordBatch(batch, ctx->memory_manager())); |
| 49 | return CudaBuffer::FromBuffer(buf); |
| 50 | } |
| 51 | |
| 52 | Result<std::shared_ptr<RecordBatch>> ReadRecordBatch( |
| 53 | const std::shared_ptr<Schema>& schema, const ipc::DictionaryMemo* dictionary_memo, |