Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Represents a diff binary file.
Synopsis
- newtype DiffBinaryFile = DiffBinaryFile (ManagedPtr DiffBinaryFile)
- diffBinaryFileGetBinaryType :: (HasCallStack, MonadIO m) => DiffBinaryFile -> m DiffBinaryType
- diffBinaryFileGetData :: (HasCallStack, MonadIO m) => DiffBinaryFile -> Word64 -> m Word8
- diffBinaryFileGetInflatedSize :: (HasCallStack, MonadIO m) => DiffBinaryFile -> m Word64
- diffBinaryFileRef :: (HasCallStack, MonadIO m) => DiffBinaryFile -> m DiffBinaryFile
- diffBinaryFileUnref :: (HasCallStack, MonadIO m) => DiffBinaryFile -> m ()
Exported types
newtype DiffBinaryFile Source #
Memory-managed wrapper type.
DiffBinaryFile (ManagedPtr DiffBinaryFile) |
Instances
Eq DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile (==) :: DiffBinaryFile -> DiffBinaryFile -> Bool # (/=) :: DiffBinaryFile -> DiffBinaryFile -> Bool # | |
GBoxed DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile | |
ManagedPtrNewtype DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile toManagedPtr :: DiffBinaryFile -> ManagedPtr DiffBinaryFile | |
TypedObject DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile | |
HasParentTypes DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile | |
IsGValue (Maybe DiffBinaryFile) Source # | Convert |
Defined in GI.Ggit.Structs.DiffBinaryFile gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DiffBinaryFile -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DiffBinaryFile) | |
type ParentTypes DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile |
Methods
Click to display all available methods, including inherited ones
getBinaryType
diffBinaryFileGetBinaryType Source #
:: (HasCallStack, MonadIO m) | |
=> DiffBinaryFile |
|
-> m DiffBinaryType | Returns: the file's binary type. |
Gets the DiffBinaryType
for file
.
getData
diffBinaryFileGetData Source #
:: (HasCallStack, MonadIO m) | |
=> DiffBinaryFile |
|
-> Word64 |
|
-> m Word8 | Returns: a pointer to the binary data, or |
Get the binary data. This data should not be modified.
getInflatedSize
diffBinaryFileGetInflatedSize Source #
:: (HasCallStack, MonadIO m) | |
=> DiffBinaryFile |
|
-> m Word64 | Returns: the length of the binary data after inflation. |
Gets the length of the binary data after inflation.
ref
:: (HasCallStack, MonadIO m) | |
=> DiffBinaryFile |
|
-> m DiffBinaryFile | Returns: a |
Atomically increments the reference count of file
by one.
This function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> DiffBinaryFile |
|
-> m () |
Atomically decrements the reference count of file
by one.
If the reference count drops to 0, file
is freed.