WPILibC++ 2027.0.0-alpha-2
Loading...
Searching...
No Matches
MatchInfo.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <stdint.h>
8
10
11#include "MrcComm.npb.h"
12#include "mrc/NetComm.h"
13
14template <>
15struct wpi::Protobuf<mrc::MatchInfo> {
16 using MessageStruct = mrc_proto_ProtobufMatchInfo;
19 static std::optional<mrc::MatchInfo> Unpack(InputStream& Stream);
20 static bool Pack(OutputStream& Stream, const mrc::MatchInfo& Value);
21};
Class for wrapping a nanopb istream.
Definition Protobuf.h:55
Class for wrapping a nanopb ostream.
Definition Protobuf.h:119
Definition NetComm.h:19
Definition NetComm.h:225
static bool Pack(OutputStream &Stream, const mrc::MatchInfo &Value)
static std::optional< mrc::MatchInfo > Unpack(InputStream &Stream)
mrc_proto_ProtobufMatchInfo MessageStruct
Definition MatchInfo.h:16
Protobuf serialization template.
Definition Protobuf.h:36