-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Description
There is
shortByteString :: ShortByteString -> Builderbut sometimes we want to write only a part of a SBS, i.e.
partOfShortByteString :: Int {- ^ offset -} -> Int {- ^ length -} -> ShortByteString -> Builderas there aren't efficient take and drop for SBS.
We can go one abstraction lower and provide:
byteArray :: ByteArray -> Builder
partOfByteArray :: nt {- ^ offset -} -> Int {- ^ length -} -> ByteArray -> Builderas 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.
Metadata
Metadata
Assignees
Labels
No labels