示例#1
0
 private static ByteString Create(ByteString1 b, ByteStrings bs)
 {
     switch (Compare(b, bs))
     {
         case 3:
             return new ByteStrings(new LinkedList<ByteString1>(bs.Items).AddFirst(b).List.ToArray(),
                 bs.Count + b.Count);
         case 2:
             return bs;
         case 1:
             return b;
         case 0:
             return Empty;
     }
     throw new ArgumentOutOfRangeException();
 }
示例#2
0
        private static ByteString Create(ByteString1 b, ByteStrings bs)
        {
            switch (Compare(b, bs))
            {
            case 3:
                return(new ByteStrings(new LinkedList <ByteString1>(bs.Items).AddFirst(b).List.ToArray(),
                                       bs.Count + b.Count));

            case 2:
                return(bs);

            case 1:
                return(b);

            case 0:
                return(Empty);
            }
            throw new ArgumentOutOfRangeException();
        }
示例#3
0
 public ByteStrings(ByteString1[] byteStrings, int length)
 {
     _byteStrings = byteStrings;
     _length = length;
 }