Skip to content

Missing getShortByteString #211

@julmb

Description

@julmb

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 . getByteString

But maybe there is a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions