Exemplo n.º 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);
            }
Exemplo n.º 2
0
            protected BinaryContent /*!*/ WrapContent(byte[] /*!*/ bytes)
            {
                var result = new BinaryContent(_owner, new List <byte>(bytes)); // TODO: do not copy

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

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