Exemplo n.º 1
0
        public int Write(byte[] buffer, int offset, int count)
        {
            new ArraySegment <byte>(buffer, offset, count);



            var item = new BufferMethod.ArrayItem(
                _buffer, _writeOffset, _writeCount,
                buffer, offset, count);

            int n = BufferMethod.Write(ref item);

            _writeOffset = item.SourceOffset;

            _writeCount = item.SourceCount;

            _readCount += n;

            return(n);
        }
Exemplo n.º 2
0
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod, string name, string description)
     : base(httpMethod, path, name, description)
 {
     m_method = binaryMethod;
 }
Exemplo n.º 3
0
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod)
     : this(httpMethod, path, binaryMethod, null, null) {}
Exemplo n.º 4
0
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod, string name, string description)
     : base(httpMethod, path, name, description)
 {
     m_method = binaryMethod;
 }
Exemplo n.º 5
0
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod)
     : this(httpMethod, path, binaryMethod, null, null)
 {
 }