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 blob object.
Synopsis
- newtype Blob = Blob (ManagedPtr Blob)
- class (GObject o, IsDescendantOf Blob o) => IsBlob o
- toBlob :: (MonadIO m, IsBlob o) => o -> m Blob
- noBlob :: Maybe Blob
- blobGetRawContent :: (HasCallStack, MonadIO m, IsBlob a) => a -> m (Maybe ByteString)
- blobIsBinary :: (HasCallStack, MonadIO m, IsBlob a) => a -> m Bool
Exported types
Memory-managed wrapper type.
Instances
Eq Blob Source # | |
IsGValue Blob Source # | Convert |
GObject Blob Source # | |
Defined in GI.Ggit.Objects.Blob gobjectType :: IO GType # | |
HasParentTypes Blob Source # | |
Defined in GI.Ggit.Objects.Blob | |
type ParentTypes Blob Source # | |
Defined in GI.Ggit.Objects.Blob |
class (GObject o, IsDescendantOf Blob o) => IsBlob o Source #
Instances
(GObject o, IsDescendantOf Blob o) => IsBlob o Source # | |
Defined in GI.Ggit.Objects.Blob |
Methods
Overloaded methods
getRawContent
:: (HasCallStack, MonadIO m, IsBlob a) | |
=> a |
|
-> m (Maybe ByteString) | Returns: the blob content or
|
Gets a read-only buffer with the raw contents of blob
.
A pointer to the raw contents of blob
is returned.
This pointer is owned internally by object
and must
not be free'd. The pointer may be invalidated at a later
time.
isBinary
:: (HasCallStack, MonadIO m, IsBlob a) | |
=> a |
|
-> m Bool |
Check whether the blob is binary.