| 886 | namespace { |
| 887 | |
| 888 | Status WriteTensorHeader(const Tensor& tensor, io::OutputStream* dst, |
| 889 | int32_t* metadata_length) { |
| 890 | IpcWriteOptions options; |
| 891 | options.alignment = kTensorAlignment; |
| 892 | std::shared_ptr<Buffer> metadata; |
| 893 | ARROW_ASSIGN_OR_RAISE(metadata, internal::WriteTensorMessage(tensor, 0, options)); |
| 894 | return WriteMessage(*metadata, options, dst, metadata_length); |
| 895 | } |
| 896 | |
| 897 | Status WriteStridedTensorData(int dim_index, int64_t offset, int elem_size, |
| 898 | const Tensor& tensor, uint8_t* scratch_space, |
no test coverage detected