Ejemplo n.º 1
0
 private HttpMultipartContentTemplateParser(StreamIndexer data, long length, byte[] boundary, Encoding encoding)
 {
     this.m_data     = data;
     this.m_length   = (int)length;
     this.m_boundary = boundary;
     this.m_encoding = encoding;
 }
 private HttpMultipartContentTemplateParser(StreamIndexer data, long length, byte[] boundary, Encoding encoding)
 {
     this.m_data = data;
     this.m_length = (int) length;
     this.m_boundary = boundary;
     this.m_encoding = encoding;
 }
Ejemplo n.º 3
0
        internal static MultipartContentElement[] Parse(StreamIndexer data, long length, byte[] boundary, Encoding encoding) // Edited to remove HttpRawUploadedContent dependancy
        {
            var httpMultipartContentTemplateParser = new HttpMultipartContentTemplateParser(data, length, boundary, encoding);

            httpMultipartContentTemplateParser.ParseIntoElementList();
            return((MultipartContentElement[])httpMultipartContentTemplateParser.m_elements.ToArray(typeof(MultipartContentElement)));
        }
        internal MultipartContentElement(string name, string filename, string contentType, StreamIndexer streamIndexer, int offset, int length)
        {
            this.m_name = name;
            this.m_filename = filename;
            this.m_contentType = contentType;
            this.m_offset = offset;
            this.m_length = length;

            this.m_streamIndexer = streamIndexer;
        }
Ejemplo n.º 5
0
        internal MultipartContentElement(string name, string filename, string contentType, StreamIndexer streamIndexer, int offset, int length)
        {
            this.m_name        = name;
            this.m_filename    = filename;
            this.m_contentType = contentType;
            this.m_offset      = offset;
            this.m_length      = length;

            this.m_streamIndexer = streamIndexer;
        }
Ejemplo n.º 6
0
        public void CopyBytes(StreamIndexer streamIndexer, int streamIndexerOffset, byte[] destArray, int destArrayOffset, int count)
        {
            m_stream.Position = streamIndexerOffset;

            m_stream.Read(destArray, destArrayOffset, count);
        }
 internal static MultipartContentElement[] Parse(StreamIndexer data, long length, byte[] boundary, Encoding encoding) // Edited to remove HttpRawUploadedContent dependancy
 {
     var httpMultipartContentTemplateParser = new HttpMultipartContentTemplateParser(data, length, boundary, encoding);
     httpMultipartContentTemplateParser.ParseIntoElementList();
     return (MultipartContentElement[])httpMultipartContentTemplateParser.m_elements.ToArray(typeof(MultipartContentElement));
 }
        public void CopyBytes(StreamIndexer streamIndexer, int streamIndexerOffset, byte[] destArray, int destArrayOffset, int count)
        {
            m_stream.Position = streamIndexerOffset;

            m_stream.Read(destArray, destArrayOffset, count);
        }