Esempio n. 1
0
 public DownloadRequest(string url, ByteFunction byteFunc, int priority = 1)
 {
     Url          = url;
     byteFunction = byteFunc;
     isByte       = true;
     Priority     = priority;
 }
        protected override NcsRequestInfo ResolveRequestInfo(ArraySegment <byte> header, byte[] bodyBuffer, int offset, int length)
        {
            var byteTmp = bodyBuffer.CloneRange(offset, length);

            return(new NcsRequestInfo(byteTmp, ByteFunction.Combine(header.Array, byteTmp)));
        }