MCPcopy Create free account
hub / github.com/beefytech/Beef / GetLengthBitCount

Method GetLengthBitCount

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:3192–3202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3190//////////////////////////////////////////////////////////////////////////
3191
3192int BfArrayType::GetLengthBitCount()
3193{
3194 if (mBaseType == NULL)
3195 mModule->PopulateType(mBaseType, BfPopulateType_BaseType);
3196 mModule->PopulateType(mBaseType);
3197 if ((mBaseType->mFieldInstances.size() == 0) || (mBaseType->mFieldInstances[0].GetFieldDef()->mName != "mLength"))
3198 {
3199 return 0;
3200 }
3201 return mBaseType->mFieldInstances[0].mResolvedType->mSize * 8;
3202}
3203
3204//////////////////////////////////////////////////////////////////////////
3205

Callers 3

VisitMethod · 0.80
CreateCallMethod · 0.80
CreateObjectMethod · 0.80

Calls 3

GetFieldDefMethod · 0.80
PopulateTypeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected