Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Represents a diff binary file.
Synopsis
- newtype DiffBinaryFile = DiffBinaryFile (ManagedPtr DiffBinaryFile)
- noDiffBinaryFile :: Maybe 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.
Instances
Eq DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile (==) :: DiffBinaryFile -> DiffBinaryFile -> Bool # (/=) :: DiffBinaryFile -> DiffBinaryFile -> Bool # | |
IsGValue DiffBinaryFile Source # | Convert |
Defined in GI.Ggit.Structs.DiffBinaryFile toGValue :: DiffBinaryFile -> IO GValue # fromGValue :: GValue -> IO DiffBinaryFile # | |
BoxedObject DiffBinaryFile Source # | |
Defined in GI.Ggit.Structs.DiffBinaryFile boxedType :: DiffBinaryFile -> IO GType # |
noDiffBinaryFile :: Maybe DiffBinaryFile Source #
A convenience alias for Nothing
:: Maybe
DiffBinaryFile
.
Methods
Overloaded methods
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.