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); }
public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod, string name, string description) : base(httpMethod, path, name, description) { m_method = binaryMethod; }
public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod) : this(httpMethod, path, binaryMethod, null, null) {}
public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod) : this(httpMethod, path, binaryMethod, null, null) { }