| 104 | descr->type_length(), num_values) {} |
| 105 | |
| 106 | std::string FuzzEncodingHeader::Serialize() const { |
| 107 | PackedEncodingHeader packed{}; |
| 108 | packed.header.source_encoding_id = static_cast<uint8_t>(source_encoding); |
| 109 | packed.header.roundtrip_encoding_id = static_cast<uint8_t>(roundtrip_encoding); |
| 110 | packed.header.type_id = static_cast<uint8_t>(type); |
| 111 | packed.header.type_length = type_length; |
| 112 | packed.header.num_values = num_values; |
| 113 | return std::string(reinterpret_cast<const char*>(&packed), kPackedEncodingHeaderSize); |
| 114 | } |
| 115 | |
| 116 | ::arrow::Result<FuzzEncodingHeader::ParseResult> FuzzEncodingHeader::Parse( |
| 117 | std::span<const uint8_t> payload) { |
no outgoing calls