19#ifndef PARDE_MARSHAL_H_
20#define PARDE_MARSHAL_H_
24#include "backends/tofino/bf-p4c/ir/gress.h"
25#include "lib/cstring.h"
46 return gress == other.gress && field_name == other.field_name &&
54 friend std::ostream &operator<<(std::ostream &s,
const MarshaledFrom &m);
63inline std::ostream &operator<<(std::ostream &s,
const MarshaledFrom &m) {
64 s <<
"(" << m.gress <<
", " << m.field_name <<
", " << m.
pre_padding <<
")";
Definition json_generator.h:37
Definition json_loader.h:39
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24
size_t pre_padding
Definition marshal.h:40
void toJSON(JSONGenerator &json) const
JSON serialization/deserialization.
Definition marshal.cpp:29
std::string toString() const
Definition marshal.cpp:23