コード例 #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);
        }
コード例 #2
0
ファイル: BufferStreamHandler.cs プロジェクト: kf6kjg/halcyon
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod, string name, string description)
     : base(httpMethod, path, name, description)
 {
     m_method = binaryMethod;
 }
コード例 #3
0
ファイル: BufferStreamHandler.cs プロジェクト: kf6kjg/halcyon
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod)
     : this(httpMethod, path, binaryMethod, null, null) {}
コード例 #4
0
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod, string name, string description)
     : base(httpMethod, path, name, description)
 {
     m_method = binaryMethod;
 }
コード例 #5
0
 public BufferStreamHandler(string httpMethod, string path, BufferMethod binaryMethod)
     : this(httpMethod, path, binaryMethod, null, null)
 {
 }