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