dep-protobuf/editions/defaults_test_embedded_hex_array.h.template
Thomas Van Lenten b09d551636 Expand embed_edition_defaults encoding to byte types.
While there is support for base64, it requires a runtime cost to decode
back into the bytes, so adding support to write out either hex or decimal
byte values to the encoding. This allows the values to be directly used for
datatypes that are more "byte buffer" than a "string".

Also make the rule's implementation return the output file via the default file
provider.

PiperOrigin-RevId: 786338818
2025-07-23 10:42:15 -07:00

13 lines
450 B
Text

#ifndef THIRD_PARTY_PROTOBUF_EDITIONS_DEFAULTS_TEST_EMBEDDED_HEX_ARRAY_H_
#define THIRD_PARTY_PROTOBUF_EDITIONS_DEFAULTS_TEST_EMBEDDED_HEX_ARRAY_H_
#include <cstdint>
#include <vector>
// Normally something like this would go into a .cc file, but using a header to
// simplify things.
static const std::vector<uint8_t> kDefaultTestEmbeddedHexArray = {
DEFAULTS_VALUE
};
#endif // THIRD_PARTY_PROTOBUF_EDITIONS_DEFAULTS_TEST_EMBEDDED_HEX_ARRAY_H_