Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public readonly ref struct MySpanWrapper1
- {
- public readonly Span<byte> content;
- public MySpanWrapper1(in Span<byte> buffer)
- {
- content = buffer;
- }
- public MySpanWrapper1 Copy()
- {
- return new MySpanWrapper1(content);
- }
- }
- public readonly ref struct MySpanWrapper2
- {
- public readonly Span<byte> content;
- public MySpanWrapper2(Span<byte> buffer)
- {
- content = buffer;
- }
- public MySpanWrapper2 Copy()
- {
- return new MySpanWrapper2(content);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement