mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[wpiutil] Struct: Remove explicit span length from int8 (#6840)
This commit is contained in:
@@ -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; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user