| 874 | namespace { |
| 875 | |
| 876 | Status WriteTensorHeader(const Tensor& tensor, io::OutputStream* dst, |
| 877 | int32_t* metadata_length) { |
| 878 | IpcWriteOptions options; |
| 879 | options.alignment = kTensorAlignment; |
| 880 | std::shared_ptr<Buffer> metadata; |
| 881 | ARROW_ASSIGN_OR_RAISE(metadata, internal::WriteTensorMessage(tensor, 0, options)); |
| 882 | return WriteMessage(*metadata, options, dst, metadata_length); |
| 883 | } |
| 884 | |
| 885 | Status WriteStridedTensorData(int dim_index, int64_t offset, int elem_size, |
| 886 | const Tensor& tensor, uint8_t* scratch_space, |
no test coverage detected