You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd like to keep track of the amount of copied data and in my case send that number to statsd. As there might be less (or even more) than the requested length ($maxLen) of data copied I'd like to know the exact amount.
I could implement a stream decorator that counts the amount of written data but this doesn't seem to me as the right approach.
The function copy_to_stream() should return the count of copied bytes. Like the PHP function stream_copy_to_stream() does.
Current workaround is to use copy_to_string() and check the length of the returned string but this does not play well for large amounts of data.
The text was updated successfully, but these errors were encountered: