P4C
The P4 Compiler
Loading...
Searching...
No Matches
ActionDataBus::Use::ReservedSpace Struct Reference

#include <action_data_bus.h>

Public Member Functions

 ReservedSpace (Loc l, int bo, bitvec bu)
 
 ReservedSpace (Loc l, int bo, bitvec bu, ActionData::Location_t src)
 
void dbprint (std::ostream &out) const
 
bool operator!= (const ReservedSpace &rs) const
 
bool operator== (const ReservedSpace &rs) const
 

Public Attributes

int byte_offset = -1
 
bitvec bytes_used
 
Loc location
 
ActionData::Location_t source = ActionData::ALL_LOCATIONS
 

Detailed Description

An individual space within the Use. Used to update the reserved space

Constructor & Destructor Documentation

◆ ReservedSpace()

ActionDataBus::Use::ReservedSpace::ReservedSpace ( Loc l,
int bo,
bitvec bu )
inline

‍Is IMMED, ADT or METER

Member Data Documentation

◆ bytes_used

bitvec ActionDataBus::Use::ReservedSpace::bytes_used

‍Bytes from the lsb of the Action Data Format

◆ source

ActionData::Location_t ActionDataBus::Use::ReservedSpace::source = ActionData::ALL_LOCATIONS

‍Not all of the bytes in the slot may necessarily be used, if they don't contain action data