| 725 | } |
| 726 | |
| 727 | int64_t SerializeEncryptedObj(ArrowOutputStream* out, |
| 728 | std::span<const uint8_t> serialized, |
| 729 | Encryptor* encryptor) { |
| 730 | auto cipher_buffer = |
| 731 | AllocateBuffer(encryptor->pool(), encryptor->CiphertextLength(serialized.size())); |
| 732 | int32_t cipher_buffer_len = |
| 733 | encryptor->Encrypt(serialized, cipher_buffer->mutable_span_as<uint8_t>()); |
| 734 | |
| 735 | PARQUET_THROW_NOT_OK(out->Write(cipher_buffer->data(), cipher_buffer_len)); |
| 736 | return cipher_buffer_len; |
| 737 | } |
| 738 | |
| 739 | std::shared_ptr<ThriftBuffer> mem_buffer_; |
| 740 | std::shared_ptr<apache::thrift::protocol::TProtocol> protocol_; |
nothing calls this directly
no test coverage detected