Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stack.StaticBytes
Documentation
class DynamicBytes dbytes Source #
Minimal complete definition
lengthD, withPeekD, fromWordsD
Instances
DynamicBytes ByteString Source # | |
(~) * word8 Word8 => DynamicBytes (Vector word8) Source # | |
(~) * word8 Word8 => DynamicBytes (Vector word8) Source # | |
(~) * word8 Word8 => DynamicBytes (Vector word8) Source # | |
class StaticBytes sbytes Source #
Minimal complete definition
lengthS, toWordsS, usePeekS
data StaticBytesException Source #
Constructors
NotEnoughBytes | |
TooManyBytes |
toStaticExact :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> Either StaticBytesException sbytes Source #
toStaticPad :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> Either StaticBytesException sbytes Source #
toStaticTruncate :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> Either StaticBytesException sbytes Source #
toStaticPadTruncate :: (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> sbytes Source #
fromStatic :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => sbytes -> dbytes Source #