UnrealBinaryWriter

Namespace: UAssetAPI

Any binary writer used in the parsing of Unreal file types.

public class UnrealBinaryWriter : System.IO.BinaryWriter, System.IDisposable, System.IAsyncDisposable

Inheritance ObjectBinaryWriterUnrealBinaryWriter
Implements IDisposable, IAsyncDisposable

Properties

BaseStream

public Stream BaseStream { get; }

Property Value

Stream

Constructors

UnrealBinaryWriter()

public UnrealBinaryWriter()

UnrealBinaryWriter(Stream)

public UnrealBinaryWriter(Stream stream)

Parameters

stream Stream

UnrealBinaryWriter(Stream, Encoding)

public UnrealBinaryWriter(Stream stream, Encoding encoding)

Parameters

stream Stream

encoding Encoding

UnrealBinaryWriter(Stream, Encoding, Boolean)

public UnrealBinaryWriter(Stream stream, Encoding encoding, bool leaveOpen)

Parameters

stream Stream

encoding Encoding

leaveOpen Boolean

Methods

ReverseIfBigEndian(Byte[])

protected Byte[] ReverseIfBigEndian(Byte[] data)

Parameters

data Byte[]

Returns

Byte[]

Write(Int16)

public void Write(short value)

Parameters

value Int16

Write(UInt16)

public void Write(ushort value)

Parameters

value UInt16

Write(Int32)

public void Write(int value)

Parameters

value Int32

Write(UInt32)

public void Write(uint value)

Parameters

value UInt32

Write(Int64)

public void Write(long value)

Parameters

value Int64

Write(UInt64)

public void Write(ulong value)

Parameters

value UInt64

Write(Single)

public void Write(float value)

Parameters

value Single

Write(Double)

public void Write(double value)

Parameters

value Double

Write(String)

public void Write(string value)

Parameters

value String

Write(FString)

public int Write(FString value)

Parameters

value FString

Returns

Int32

WriteNameBatch(UInt64, IList<FString>)

public void WriteNameBatch(ulong HashVersion, IList<FString> nameMap)

Parameters

HashVersion UInt64

nameMap IList<FString>

WriteCustomVersionContainer(ECustomVersionSerializationFormat, List<CustomVersion>)

public void WriteCustomVersionContainer(ECustomVersionSerializationFormat format, List<CustomVersion> CustomVersionContainer)

Parameters

format ECustomVersionSerializationFormat

CustomVersionContainer List<CustomVersion>