Current:
public static void Write<T>(Span<byte> destination, ref T value)
where T : struct
Proposed:
public static void Write<T>(Span<byte> destination, in T value)
where T : struct
Code example:
var readonlySpan = new ReadOnlySpan<byte>(new byte[1]);
var span = new Span<byte>(new byte[1]);
// assume in does not copy struct
// assume Write does not try to modify struct
MemoryMarshal.Write(span, in readonlySpan[0]);