Skip to content

chunksOf :: Int -> ByteString m r -> Stream (Of ByteString) m r #1

@ocharles

Description

@ocharles

What do you think about adding a function:

chunksOf :: Int -> Data.ByteString.Streaming.ByteString m r -> Stream (Of Data.ByteString.ByteString) m r

This would yield consecutive chunks of n bytes as a strict bytestring. If the ByteString doesn't have n bytes, it ceases to yield and returns.

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