示例#1
0
 public static OperationStatus Read(this NetBinaryReader reader, Span <int> destination)
 {
示例#2
0
 /// <summary>
 /// </summary>
 /// <remarks>
 /// Allocates array. Try to use <see cref="Span{T}"/> overload.
 /// </remarks>
 public static byte[] ReadBytes(this NetBinaryReader reader, int count)
 {
     byte[] result = new byte[count];
     reader.Read(result);
     return(result);
 }