Пример #1
0
 /// <summary>
 /// Reads the specified number of bytes without advancing the read position.
 /// </summary>
 public static void Peek(this IBitBuffer buffer, Span <byte> destination)
 {
     if (!buffer.TryPeek(destination))
     {
         throw new EndOfMessageException();
     }
 }