Beispiel #1
0
        public void Add(OffsetElement element)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            _elements.Add(element);
        }
Beispiel #2
0
        public void Write(byte[] content, OffsetElement source)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            _segments.Add(new BinarySegment(content, source));
        }
Beispiel #3
0
 public BinarySegment(byte[] content, OffsetElement source)
 {
     if (content == null)
     {
         throw new ArgumentNullException(nameof(content));
     }
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     Content = content;
     Source  = source;
 }