We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is
shortByteString :: ShortByteString -> Builder
but sometimes we want to write only a part of a SBS, i.e.
partOfShortByteString :: Int {- ^ offset -} -> Int {- ^ length -} -> ShortByteString -> Builder
as there aren't efficient take and drop for SBS.
take
drop
We can go one abstraction lower and provide:
byteArray :: ByteArray -> Builder partOfByteArray :: nt {- ^ offset -} -> Int {- ^ length -} -> ByteArray -> Builder
as ByteArray is now "the" type, SBS is just a small wrapper around it.
ByteArray
If maintainers are happy with an idea, I'll make a PR.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is
but sometimes we want to write only a part of a SBS, i.e.
as there aren't efficient
take
anddrop
for SBS.We can go one abstraction lower and provide:
as
ByteArray
is now "the" type, SBS is just a small wrapper around it.If maintainers are happy with an idea, I'll make a PR.
The text was updated successfully, but these errors were encountered: