Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function curl_onRead (max:Int, input:Bytes):Bytes {
- var totalLength:Int = input.length;
- var remainingToSend:Int = totalLength - bytesLoaded;
- var sendThisTime:Int = remainingToSend > max ? max : remainingToSend;
- return input.sub(bytesLoaded, sendThisTime);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement