Function Snpe_DlContainer_OpenBuffer_With_DestinationHint¶
Defined in File DlContainer.h
Function Documentation¶
-
Snpe_DlContainer_Handle_t Snpe_DlContainer_OpenBuffer_With_DestinationHint(const uint8_t *buffer, const size_t size, const char *destinationDirectoryHint)¶
Initializes a container from a byte buffer along with a hint where dlc will be saved.
- Parameters
buffer – [in] Byte buffer holding the contents of an archive file.
size – [in] Size of the byte buffer.
destinationDirectoryHint – [in] Path to a directory where the dlc will be saved after changes.
- Returns
A Snpe_DlContainer_Handle_t to access the dlContainer
Note
When destinationDirectoryHint is null or invalid directory path, a null handle is returned.
Note
When empty string is passed as destinationDirectoryHint, the current working directory is used as the destination directory hint.
Note
This API is recommended only when the container is modified. The Save API determines the final path where the DLC will be saved.