[wpiutil] Struct: Remove explicit span length from int8 (#6840)

This commit is contained in:
Matt
2024-07-16 16:40:36 -04:00
committed by GitHub
parent 8f60dc736d
commit f9d32ad706

View File

@@ -478,10 +478,8 @@ struct Struct<int8_t> {
static constexpr std::string_view GetTypeString() { return "struct:int8"; }
static constexpr size_t GetSize() { return 1; }
static constexpr std::string_view GetSchema() { return "int8 value"; }
static int8_t Unpack(std::span<const uint8_t, 1> data) { return data[0]; }
static void Pack(std::span<uint8_t, 1> data, int8_t value) {
data[0] = value;
}
static int8_t Unpack(std::span<const uint8_t> data) { return data[0]; }
static void Pack(std::span<uint8_t> data, int8_t value) { data[0] = value; }
};
/**