MCPcopy Create free account
hub / github.com/apache/arrow / SerializeEncryptedObj

Method SerializeEncryptedObj

cpp/src/parquet/thrift_internal.h:727–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls 7

AllocateBufferFunction · 0.70
poolMethod · 0.45
CiphertextLengthMethod · 0.45
sizeMethod · 0.45
EncryptMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected