Home | History | Annotate | Download | only in system

Lines Matching refs:struct_size

6 // (public, C) API. These are "extensible" structs, which all have |struct_size|
7 // as their first member. All fields (other than |struct_size|) are optional,
37 static_assert(offsetof(Options, struct_size) == 0,
38 "struct_size not first member of Options");
40 // static_assert(sizeof(Options::struct_size) == sizeof(uint32_t),
41 // "Options::struct_size not a uint32_t");
60 return options().struct_size >= offset + size;
65 uint32_t struct_size = *reinterpret_cast<const uint32_t*>(options);
66 if (struct_size < sizeof(uint32_t))
69 return std::min(static_cast<size_t>(struct_size), sizeof(Options));