MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / InlineAlignment

Function InlineAlignment

native/thirdpart/flatbuffers/idl.h:502–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502inline size_t InlineAlignment(const Type &type) {
503 if (IsStruct(type)) {
504 return type.struct_def->minalign;
505 } else if (IsArray(type)) {
506 return IsStruct(type.VectorType()) ? type.struct_def->minalign
507 : SizeOf(type.element);
508 } else {
509 return SizeOf(type.base_type);
510 }
511}
512inline bool operator==(const EnumVal &lhs, const EnumVal &rhs) {
513 return lhs.value == rhs.value;
514}

Callers 2

AddFieldMethod · 0.85
ParseVectorMethod · 0.85

Calls 4

IsStructFunction · 0.85
IsArrayFunction · 0.85
SizeOfFunction · 0.85
VectorTypeMethod · 0.80

Tested by

no test coverage detected