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 blob object.
Synopsis
- newtype Blob = Blob (ManagedPtr Blob)
- class (GObject o, IsDescendantOf Blob o) => IsBlob o
- toBlob :: (MonadIO m, IsBlob o) => o -> m 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 # | |
GObject Blob Source # | |
Defined in GI.Ggit.Objects.Blob | |
ManagedPtrNewtype Blob Source # | |
Defined in GI.Ggit.Objects.Blob toManagedPtr :: Blob -> ManagedPtr Blob | |
TypedObject Blob Source # | |
Defined in GI.Ggit.Objects.Blob | |
HasParentTypes Blob Source # | |
Defined in GI.Ggit.Objects.Blob | |
IsGValue (Maybe Blob) Source # | Convert |
Defined in GI.Ggit.Objects.Blob gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Blob -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isBinary, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getId, getOwner, getProperty, getQdata, getRawContent.
Setters
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.