MCPcopy Create free account
hub / github.com/crazytuzi/UnrealCSharp / GetBufferCast

Method GetBufferCast

Source/ScriptCodeGenerator/Private/FGeneratorCore.cpp:438–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438FString FGeneratorCore::GetBufferCast(FProperty* Property)
439{
440 if (const auto EnumProperty = CastField<FEnumProperty>(Property))
441 {
442 return GetBufferCast(EnumProperty->GetUnderlyingProperty());
443 }
444
445 if (CastField<FByteProperty>(Property)) return TEXT("byte");
446
447 if (CastField<FUInt16Property>(Property)) return TEXT("ushort");
448
449 if (CastField<FUInt32Property>(Property)) return TEXT("uint");
450
451 if (CastField<FUInt64Property>(Property)) return TEXT("ulong");
452
453 if (CastField<FInt8Property>(Property)) return TEXT("sbyte");
454
455 if (CastField<FInt16Property>(Property)) return TEXT("short");
456
457 if (CastField<FIntProperty>(Property)) return TEXT("int");
458
459 if (CastField<FInt64Property>(Property)) return TEXT("long");
460
461 if (CastField<FBoolProperty>(Property)) return TEXT("bool");
462
463 if (CastField<FFloatProperty>(Property)) return TEXT("float");
464
465 if (CastField<FDoubleProperty>(Property)) return TEXT("double");
466
467 return TEXT("nint");
468}
469
470int32 FGeneratorCore::GetBufferSize(FProperty* Property)
471{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected