mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Use wpi::span instead of wpi::ArrayRef across all libraries (#3414)
- Remove ArrayRef.h - Add SpanExtras.h for a couple of convenience functions
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
|
||||
#include <DSCommJoystickPacket.h>
|
||||
#include <hal/simulation/DriverStationData.h>
|
||||
#include <wpi/ArrayRef.h>
|
||||
#include <wpi/raw_uv_ostream.h>
|
||||
#include <wpi/span.h>
|
||||
|
||||
class DSCommPacketTest;
|
||||
|
||||
@@ -20,8 +20,8 @@ class DSCommPacket {
|
||||
|
||||
public:
|
||||
DSCommPacket(void);
|
||||
void DecodeTCP(wpi::ArrayRef<uint8_t> packet);
|
||||
void DecodeUDP(wpi::ArrayRef<uint8_t> packet);
|
||||
void DecodeTCP(wpi::span<const uint8_t> packet);
|
||||
void DecodeUDP(wpi::span<const uint8_t> packet);
|
||||
void SendUDPToHALSim(void);
|
||||
void SetupSendBuffer(wpi::raw_uv_ostream& buf);
|
||||
|
||||
@@ -53,11 +53,11 @@ class DSCommPacket {
|
||||
void SetAlliance(uint8_t station_code);
|
||||
void SetupSendHeader(wpi::raw_uv_ostream& buf);
|
||||
void SetupJoystickTag(wpi::raw_uv_ostream& buf);
|
||||
void ReadMatchtimeTag(wpi::ArrayRef<uint8_t> tagData);
|
||||
void ReadJoystickTag(wpi::ArrayRef<uint8_t> data, int index);
|
||||
void ReadNewMatchInfoTag(wpi::ArrayRef<uint8_t> data);
|
||||
void ReadGameSpecificMessageTag(wpi::ArrayRef<uint8_t> data);
|
||||
void ReadJoystickDescriptionTag(wpi::ArrayRef<uint8_t> data);
|
||||
void ReadMatchtimeTag(wpi::span<const uint8_t> tagData);
|
||||
void ReadJoystickTag(wpi::span<const uint8_t> data, int index);
|
||||
void ReadNewMatchInfoTag(wpi::span<const uint8_t> data);
|
||||
void ReadGameSpecificMessageTag(wpi::span<const uint8_t> data);
|
||||
void ReadJoystickDescriptionTag(wpi::span<const uint8_t> data);
|
||||
|
||||
uint8_t m_hi;
|
||||
uint8_t m_lo;
|
||||
|
||||
Reference in New Issue
Block a user