P4C
The P4 Compiler
|
Common counter representation between PSA and other architectures. More...
#include <bfruntime.h>
Public Types | |
enum | Unit { UNSPECIFIED = 0 , BYTES = 1 , PACKETS = 2 , BOTH = 3 } |
Static Public Member Functions | |
static std::optional< Counter > | from (const p4configv1::Counter &counterInstance) |
static std::optional< Counter > | fromDirect (const p4configv1::DirectCounter &counterInstance) |
Public Attributes | |
Util::JsonArray * | annotations |
P4Id | id |
std::string | name |
int64_t | size |
Unit | unit |
Common counter representation between PSA and other architectures.