Maintainer | John Galt <jgalt@centromere.net> |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- data ScrubbedBytes :: *
- convert :: (ByteArrayAccess bin, ByteArray bout) => bin -> bout
- append :: ByteArray bs => bs -> bs -> bs
- concatSB :: [ScrubbedBytes] -> ScrubbedBytes
- bsToSB :: ByteString -> ScrubbedBytes
- bsToSB' :: ByteString -> ScrubbedBytes
- sbToBS :: ScrubbedBytes -> ByteString
- sbToBS' :: ScrubbedBytes -> ByteString
- sbEq :: ScrubbedBytes -> ScrubbedBytes -> Bool
Types
data ScrubbedBytes :: *
ScrubbedBytes is a memory chunk which have the properties of:
- Being scrubbed after its goes out of scope.
- A Show instance that doesn't actually show any content
- A Eq instance that is constant time
Functions
convert :: (ByteArrayAccess bin, ByteArray bout) => bin -> bout
Convert a bytearray to another type of bytearray
concatSB :: [ScrubbedBytes] -> ScrubbedBytes Source
Concatenates a list of ScrubbedBytes
.
bsToSB :: ByteString -> ScrubbedBytes Source
Converts a lazy ByteString to ScrubbedBytes.
bsToSB' :: ByteString -> ScrubbedBytes Source
Strict version of bsToSB
.
sbToBS :: ScrubbedBytes -> ByteString Source
Converts ScrubbedBytes to a lazy ByteString.
sbToBS' :: ScrubbedBytes -> ByteString Source
Strict version of sbToBS'
.
sbEq :: ScrubbedBytes -> ScrubbedBytes -> Bool Source
Equality operator for ScrubbedBytes
.