internal MtomBinaryData(byte[] buffer, int offset, int count) { this.type = MtomBinaryDataType.Segment; this.chunk = new byte[count]; Buffer.BlockCopy(buffer, offset, this.chunk, 0, count); }
internal MtomBinaryData(IStreamProvider provider) { this.type = MtomBinaryDataType.Provider; this.provider = provider; }