コード例 #1
0
            // chars + binary(self) -> binary
            public override Content /*!*/ ConcatTo(CharArrayContent /*!*/ content)
            {
                int count  = content.GetDataByteCount();
                var result = new byte[count + _count];

                content.GetDataBytes(result, 0);
                Array.Copy(_data, 0, result, count, _count);
                return(Create(result, null));
            }
コード例 #2
0
            internal BinaryContent /*!*/ Concatenate(CharArrayContent /*!*/ content)
            {
                int count  = content.GetDataByteCount();
                var result = new byte[_count + count];

                Array.Copy(_data, 0, result, 0, _count);
                content.GetDataBytes(result, _count);
                return(Create(result, null));
            }
コード例 #3
0
 // chars + binary(self) -> binary
 public override Content/*!*/ ConcatTo(CharArrayContent/*!*/ content) {
     int count = content.GetDataByteCount();
     var result = new byte[count + _count];
     content.GetDataBytes(result, 0);
     Array.Copy(_data, 0, result, count, _count);
     return Create(result, null);
 }
コード例 #4
0
 internal BinaryContent/*!*/ Concatenate(CharArrayContent/*!*/ content) {
     int count = content.GetDataByteCount();
     var result = new byte[_count + count];
     Array.Copy(_data, 0, result, 0, _count);
     content.GetDataBytes(result, _count);
     return Create(result, null);
 }