mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 10:46:18 +08:00
19 lines
388 B
C++
19 lines
388 B
C++
#ifndef RFL_BYTESTRING_HPP_
|
|
#define RFL_BYTESTRING_HPP_
|
|
|
|
#include <cstddef>
|
|
#include <vector>
|
|
|
|
namespace rfl {
|
|
// custom type to avoid serializing this as a vector of enums
|
|
// in other means this is the same as
|
|
// using Bytestring = std::vector<std::byte>;
|
|
class Bytestring : public std::vector<std::byte> {
|
|
public:
|
|
using std::vector<std::byte>::vector;
|
|
};
|
|
|
|
} // namespace rfl
|
|
|
|
#endif
|