| 436 | } |
| 437 | |
| 438 | FString 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 | |
| 470 | int32 FGeneratorCore::GetBufferSize(FProperty* Property) |
| 471 | { |
nothing calls this directly
no outgoing calls
no test coverage detected