Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.29 KB | None | 0 0
  1. private function curl_onRead (max:Int, input:Bytes):Bytes {
  2.     var totalLength:Int = input.length;
  3.     var remainingToSend:Int = totalLength - bytesLoaded;
  4.    
  5.     var sendThisTime:Int = remainingToSend > max ? max : remainingToSend;
  6.  
  7.     return input.sub(bytesLoaded, sendThisTime);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement