pub unsafe extern "C" fn WasmEdge_StringWrap(
    Buf: *const c_char,
    Len: u32
) -> WasmEdge_String
Expand description

Create the WasmEdge_String wraps to the buffer.

This function creates a WasmEdge_String object which wraps to the input buffer. The caller should guarantee the life cycle of the input buffer, and should NOT call the WasmEdge_StringDelete.

\param Buf the buffer to copy into the WasmEdge_String object. \param Len the buffer length.

\returns string object refer to the input buffer with its length.