RealDocs

UKismetMathLibrary::Conv_ByteToInt64

function Engine Blueprint Since 5.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPureBlueprintAutocast

Description

Widens a byte (uint8) to a 64-bit integer. Lossless; result is always in the range 0–255.

Caveats & Gotchas

  • Lossless widening — all 256 possible byte values are exactly representable as int64. No clamping or special handling is needed.
  • Introduced alongside the int64 Blueprint type in UE5. If you need this in UE4, widen to int32 first with Conv_ByteToInt and then rely on implicit narrowing — or handle the widening manually.

Signature

static UE_INL_API int64 Conv_ByteToInt64(uint8 InByte)

Parameters

Name Type Description Default
InByte uint8 The byte value (0–255) to widen to a 64-bit integer.

Return Type

int64

Example

Use a byte counter in 64-bit accumulation C++
uint8 PacketSize = GetPacketSize();
int64 TotalBytes = UKismetMathLibrary::Conv_ByteToInt64(PacketSize) * NumPackets;

Version History

Introduced in: 5.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.