Create a new blob

ss_blob_new is a function defined in ssblob.c.

Synopsis:

ss_blob_t * ss_blob_new(ss_scope_t *scope, unsigned flags, ss_blob_t *buf)

Formal Arguments:

  • scope: Scope where the new blob will be created
  • flags: Flags such as SS_ALLSAME
  • buf [OUT]: Optional buffer to receive blob link

Description: This is mostly a convenience function for ss_pers_new that creates a new blob object in the specified scope.

Return Value: Returns a non-null pointer on success, either buf if supplied or a newly allocated blob link; returns null on failure.

Parallel Notes: Same semantics as ss_pers_new.

See Also:

  • ss_pers_new: 7.1: Create a new persistent object
  • I/O: Introduction for current chapter