1{-# LANGUAGE BangPatterns #-}
2-- Copyright 2009 Corey O'Connor
3module Data.Marshalling ( module Data.Marshalling
6 , module Foreign.ForeignPtr
7 , module Foreign.Marshal
8 , module Foreign.Storable
12import Control.Monad.Trans
17import Foreign.ForeignPtr
19import Foreign.Storable
21type OutputBuffer = Ptr Word8
23string_to_bytes :: String -> [Word8]
24string_to_bytes str = map (toEnum . fromEnum) str
26serialize_bytes :: MonadIO m => [Word8] -> OutputBuffer -> m OutputBuffer
27serialize_bytes bytes !out_ptr = do
28 liftIO $! pokeArray out_ptr bytes
29 return $! out_ptr `plusPtr` ( length bytes )
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list