81 class UBPFListElement :
public ICastable {
86 UBPFListElement(EBPFType *type,
const cstring name) : type(type), name(name) {}
87 virtual ~UBPFListElement() {}
89 DECLARE_TYPEINFO(UBPFListElement);
92 class Padding :
public UBPFListElement {
94 unsigned widthInBytes;
96 Padding(
const cstring name,
unsigned widthInBytes)
97 : UBPFListElement(
nullptr, name), widthInBytes(widthInBytes) {}
99 DECLARE_TYPEINFO(Padding, UBPFListElement);
105 std::vector<UBPFListElement *> elements;
114 unsigned widthInBits()
const override {
return width; }
115 unsigned implementationWidthInBits()
const override {
return implWidth; }