Пример #1
0
        public void WriteTo(ref SpanBinaryEditor buffer)
        {
            if (buffer.RemainingLength < SizeInBytes)
            {
                throw new IndexOutOfRangeException(
                          $"Span length {buffer.Length} is too short. It should be at least {SizeInBytes} bytes long.");
            }

            BigEndianConverter.WriteBytes(ref buffer, _hash.Left);
            BigEndianConverter.WriteBytes(ref buffer, _hash.Right);
        }