Table of Contents

Delegate ByteMigrationFunc

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Byte-level migration function for scenarios where the old struct type is no longer available in code. Receives raw bytes of the old component and must produce raw bytes of the new component.

public delegate void ByteMigrationFunc(ReadOnlySpan<byte> oldBytes, Span<byte> newBytes)

Parameters

oldBytes ReadOnlySpan<byte>
Byte-level migration function for scenarios where the old struct type is no longer available in code. Receives raw bytes of the old component and must produce raw bytes of the new component.
newBytes Span<byte>
Byte-level migration function for scenarios where the old struct type is no longer available in code. Receives raw bytes of the old component and must produce raw bytes of the new component.

Constructors

ByteMigrationFunc(object, nint)

public ByteMigrationFunc(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(ReadOnlySpan<byte>, Span<byte>, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ReadOnlySpan<byte> oldBytes, Span<byte> newBytes, AsyncCallback callback, object @object)

Parameters

oldBytes ReadOnlySpan<byte>
newBytes Span<byte>
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(ReadOnlySpan<byte>, Span<byte>)

public virtual void Invoke(ReadOnlySpan<byte> oldBytes, Span<byte> newBytes)

Parameters

oldBytes ReadOnlySpan<byte>
newBytes Span<byte>