WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
ErrorInfo.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
9#include "MrcComm.npb.h"
10#include "mrc/NetComm.h"
12
13template <>
14struct wpi::util::Protobuf<mrc::ErrorInfo> {
15 using MessageStruct = mrc_proto_ProtobufErrorInfo;
18 static std::optional<mrc::ErrorInfo> Unpack(InputStream& Stream);
19 static bool Pack(OutputStream& Stream, const mrc::ErrorInfo& Value);
20};
Class for wrapping a nanopb istream.
Definition Protobuf.hpp:55
Class for wrapping a nanopb ostream.
Definition Protobuf.hpp:119
Definition NetComm.h:19
Definition NetComm.h:434
wpi::util::ProtoInputStream< mrc::ErrorInfo > InputStream
Definition ErrorInfo.h:16
static bool Pack(OutputStream &Stream, const mrc::ErrorInfo &Value)
wpi::util::ProtoOutputStream< mrc::ErrorInfo > OutputStream
Definition ErrorInfo.h:17
mrc_proto_ProtobufErrorInfo MessageStruct
Definition ErrorInfo.h:15
static std::optional< mrc::ErrorInfo > Unpack(InputStream &Stream)
Protobuf serialization template.
Definition Protobuf.hpp:36