Copyright | (c) Kyle Van Berendonck 2014 |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Codec.Rot13
Description
This module exposes the API for this package.
Typeclass Interfaces
The Rot13
typeclass is intended to perform the ROT13 cipher on the provided data, as if it
were representing a single ANSI-encoded character. This interface doesn't consider the storage
behaviour of the type at all, but is the fastest implementation if you need to integrate the
transformation as part of a stream.
Instances
Rot13 CChar Source # | |
Rot13 CInt Source # | |
Rot13 CLLong Source # | |
Rot13 CLong Source # | |
Rot13 CSChar Source # | |
Rot13 CShort Source # | |
Rot13 CUChar Source # | |
Rot13 CUInt Source # | |
Rot13 CULLong Source # | |
Rot13 CULong Source # | |
Rot13 CUShort Source # | |
Rot13 CWchar Source # | |
Rot13 Int16 Source # | |
Rot13 Int32 Source # | |
Rot13 Int64 Source # | |
Rot13 Int8 Source # | |
Rot13 Word16 Source # | |
Rot13 Word32 Source # | |
Rot13 Word64 Source # | |
Rot13 Word8 Source # | |
Rot13 ByteString Source # | |
Defined in Codec.Rot13 Methods rot13 :: ByteString -> ByteString Source # | |
Rot13 Text Source # | |
Rot13 String Source # | |
Rot13 Integer Source # | |
Rot13 Char Source # | |
Rot13 Int Source # | |
Rot13 Word Source # | |
class Rot13Bytes a where Source #
The Rot13Bytes
typeclass is intended for when you need to perform the ROT13 cipher on some
data at the memory level. It stores the given data into a temporary buffer in memory, then runs
the cipher over the stored bytes to produce a new buffer. This operation is typically slower
than just using rot13
as part of a fusion pipeline.
Methods
rot13bs :: a -> ByteString Source #
Instances
Rot13Bytes ByteString Source # | |
Defined in Codec.Rot13 Methods rot13bs :: ByteString -> ByteString Source # | |
Storable a => Rot13Bytes a Source # | |
Defined in Codec.Rot13 Methods rot13bs :: a -> ByteString Source # |
Constraint Interfaces
Compatibility
rot13word8 :: Word8 -> Word8 Source #
rot13string :: String -> String Source #