-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add copy overload to IO to copy at most *limit* bytes #1639
Conversation
5fdfa70
to
3ec820b
Compare
@jreinert Do you want to rebase this? Then we'll merge it. |
@asterite done! |
# io2.to_s #=> "hel" | ||
# ``` | ||
def self.copy(src, dst, limit) | ||
buffer :: UInt8[1024] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jreinert This should be buffer = uninitialized UInt8[1024]
all done |
@jreinert Thanks for the rebase. As you can see, the build fails on In crystal 0.9.0, StringIO was renamed to MemoryIO - could you please rename the specs and docs? |
Merged in 5fa22e6 . Thank you! |
No description provided.