validity-bytestring- Validity instances for bytestring

Safe HaskellNone



Orphan instances

Validity ByteString Source #

A lazy ByteString is valid according to its chunks.

Instance details

Validity ShortByteString Source #

Trivially valid

My guess is that short bytestrings are not trivially valid but there is no way to access the internals.

Instance details

Validity ByteString Source #

A ByteString is NOT trivially valid.

The offset and the length both need to be positive. Note that the length does not need to be greater than, or equal to, the offset.

TODO there's nothing we can do about the foreign pointer, I think?

Instance details