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

Method HashContent

IDEHelper/Backend/BeModule.cpp:475–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475void BeConstant::HashContent(BeHashContext& hashCtx)
476{
477 hashCtx.Mixin(TypeId);
478 mType->HashReference(hashCtx);
479 if (mType->mTypeCode < BeTypeCode_Struct)
480 {
481 hashCtx.Mixin(mUInt64);
482 }
483 else if (mType->IsPointer())
484 {
485 if (mTarget != NULL)
486 mTarget->HashReference(hashCtx);
487 else
488 hashCtx.Mixin(-1);
489 }
490 else if (mType->IsComposite())
491 {
492 // Zero-init
493 BF_ASSERT(mTarget == NULL);
494 }
495 else
496 BF_FATAL("NotImpl");
497}
498
499void BeStructConstant::GetData(BeConstData& data)
500{

Callers 1

HashMethod · 0.45

Calls 13

HashReferenceMethod · 0.80
MixinStrMethod · 0.80
AppendMethod · 0.80
MixinMethod · 0.45
IsPointerMethod · 0.45
IsCompositeMethod · 0.45
sizeMethod · 0.45
IsEmptyMethod · 0.45
ToStringMethod · 0.45
AddMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected