A class for serializing various data types into a byte array for use in Unreal Engine.
More...
|
virtual void | GetBytes (TArray< uint8 > &OutBytes) |
| Retrieves the serialized bytes.
|
|
virtual void | PushBytes (const TArray< uint8 > &InBytes) |
| Appends input bytes to the current serialized data.
|
|
virtual void | Clear () |
| Clears the current serialized data and resets the writer.
|
|
virtual void | Prepare () |
| Prepares the serializer for writing new data by clearing existing data.
|
|
virtual void | SerializeInt (UPARAM(DisplayName="Value") int32 InInteger) |
| Serializes a 32-bit integer.
|
|
virtual void | SerializeBigInt (UPARAM(DisplayName="Value") int64 InBigInt) |
| Serializes a 64-bit integer.
|
|
virtual void | SerializeFloat (UPARAM(DisplayName="Value") float InFloat) |
| Serializes a floating-point number.
|
|
virtual void | SerializeDouble (UPARAM(DisplayName="Value") double InDouble) |
| Serializes a double-precision floating-point number.
|
|
virtual void | SerializeBool (UPARAM(DisplayName="Value") bool InBool) |
| Serializes a boolean value.
|
|
virtual void | SerializeByte (UPARAM(DisplayName="Value") uint8 InByte) |
| Serializes a single byte.
|
|
virtual void | SerializeVector (UPARAM(DisplayName="Value") FVector InVector) |
| Serializes a 3D vector (FVector).
|
|
virtual void | SerializeIntVector (UPARAM(DisplayName="Value") FIntVector InVector) |
| Serializes a 3D integer vector (FIntVector).
|
|
virtual void | SerializeVector2D (UPARAM(DisplayName="Value") FVector2D InVector) |
| Serializes a 2D vector (FVector2D).
|
|
virtual void | SerializePoint (UPARAM(DisplayName="Value") FIntPoint InPoint) |
| Serializes a 2D integer point (FIntPoint).
|
|
virtual void | SerializeRotator (UPARAM(DisplayName="Value") FRotator InRotator) |
| Serializes a rotation (FRotator).
|
|
virtual void | SerializeTransform (UPARAM(DisplayName="Value") FTransform InTransform) |
| Serializes a transform (FTransform).
|
|
virtual void | SerializeString (UPARAM(DisplayName="Value") FString InString) |
| Serializes a string (FString).
|
|
virtual void | SerializeObject (UPARAM(DisplayName="Value") UObject *InObject) |
| Serializes a object (UObject).
|
|
virtual void | SerializeObjects (UPARAM(DisplayName="Value") const TArray< UObject * > &InObjects) |
| Serializes a array of objects (TArray<UObject*>).
|
|
A class for serializing various data types into a byte array for use in Unreal Engine.
The USerializerObject
class provides functionality to serialize common data types into a byte array (TArray<uint8>
). It is designed to work within Unreal Engine and leverages the FMemoryWriter
class to handle the byte serialization. This class is Blueprintable and can be used directly in Unreal Engine Blueprints.
The class includes methods to serialize integers, floating point numbers, vectors, rotators, and transforms, as well as to clear the serialized data and prepare the writer for new data.