Delegate ByteMigrationFunc
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
oldBytesReadOnlySpan<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.
newBytesSpan<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
Methods
BeginInvoke(ReadOnlySpan<byte>, Span<byte>, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ReadOnlySpan<byte> oldBytes, Span<byte> newBytes, AsyncCallback callback, object @object)
Parameters
oldBytesReadOnlySpan<byte>newBytesSpan<byte>callbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Invoke(ReadOnlySpan<byte>, Span<byte>)
public virtual void Invoke(ReadOnlySpan<byte> oldBytes, Span<byte> newBytes)
Parameters
oldBytesReadOnlySpan<byte>newBytesSpan<byte>