current API:
public struct Span<T> {
public static Span<T> DangerousCreate(object obj, ref T objectData, int length);
}
public struct ReadOnlySpan<T> {
public static ReadOnlySpan<T> DangerousCreate(object obj, ref T objectData, int length);
}
proposed API:
public static class MemoryMarshal {
public static Span<T> CreateSpan(object obj, ref T objectData, int length);
public static ReadOnlySpan<T> CreateReadOnlySpan(object obj, ref T objectData, int length);
}
current API:
proposed API: