-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
In Data.Binary.Put, there is putShortByteString :: ShortByteString -> Put.
However, there is no corresponding getShortByteString :: Int -> Get ShortByteString in Data.Binary.Get.
A naive implementation would be:
getShortByteString :: Int -> Get ShortByteString
getShortByteString = fmap BS.toShort . getByteStringBut maybe there is a better way?
Metadata
Metadata
Assignees
Labels
No labels