mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
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
13 lines
450 B
Text
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_
|