Portability | unix |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | None |
- data PackedObjectInfo = PackedObjectInfo {}
- type PackedObjectRaw = (PackedObjectInfo, ByteString)
- packEnumerate :: FilePath -> IO [Ref]
- packOpen :: FilePath -> Ref -> IO FileReader
- packClose :: FileReader -> IO ()
- packReadHeader :: FilePath -> Ref -> IO Word32
- packReadMapAtOffset :: FileReader -> Word64 -> (ByteString -> ByteString) -> IO (Maybe Object)
- packReadAtOffset :: FileReader -> Word64 -> IO (Maybe Object)
- packReadRawAtOffset :: FileReader -> Word64 -> IO PackedObjectRaw
- packEnumerateObjects :: FilePath -> Ref -> Int -> (PackedObjectRaw -> IO a) -> IO ()
- packedObjectToObject :: (PackedObjectInfo, ByteString) -> Maybe Object
- packObjectFromRaw :: (ObjectType, Maybe ObjectPtr, ByteString) -> Maybe Object
Documentation
type PackedObjectRaw = (PackedObjectInfo, ByteString)Source
Enumerators of packs
packEnumerate :: FilePath -> IO [Ref]Source
Enumerate the pack refs available in this repository.
Helpers to process packs
Command for the content of a pack
packReadMapAtOffset :: FileReader -> Word64 -> (ByteString -> ByteString) -> IO (Maybe Object)Source
read an object at a specific position using a map function on the objectData
packReadAtOffset :: FileReader -> Word64 -> IO (Maybe Object)Source
read an object at a specific position
packReadRawAtOffset :: FileReader -> Word64 -> IO PackedObjectRawSource
read a raw representation at a specific position
packEnumerateObjects :: FilePath -> Ref -> Int -> (PackedObjectRaw -> IO a) -> IO ()Source
enumerate all objects in this pack and callback to f for reach raw objects