Example #1
0
            protected BinaryContent /*!*/ WrapContent(byte[] /*!*/ bytes, int count)
            {
                BinaryContent result = _owner._encoding.IsKCoding ? new KBinaryContent(bytes, count, _owner) : new BinaryContent(bytes, count, _owner);

                _owner.SetContent(result);
                return(result);
            }
            protected BinaryContent /*!*/ WrapContent(byte[] /*!*/ bytes)
            {
                var result = new BinaryContent(_owner, new List <byte>(bytes)); // TODO: do not copy

                _owner.SetContent(result);
                return(result);
            }
Example #3
0
            protected BinaryContent /*!*/ WrapContent(byte[] /*!*/ bytes, int count)
            {
                BinaryContent result = new BinaryContent(bytes, count, _owner);

                _owner.SetContent(result);
                return(result);
            }