pub fn create_persistent_object(
storage: Storage,
id: &[u8],
flags: HandleFlags,
attribute_src: ObjectHandle,
initial_data: &[u8],
) -> Result<ObjectHandle>
Expand description
Creates a persistent object and returns a handle to it. The conferred type,
usage, and attributes are given indirectly by attribute_src
; if
attribute_src
is null then the conferred type is Data.
Returns Error::ItemNotFound: if storage
does not correspond to a valid
storage spac
Returns Error::AccessConflict if the provided ID already exists but
flags
does not contain DATA_FLAG_OVERWRITE.