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

Creation of the WasmEdge_String with the buffer and its length.

The caller owns the object and should call WasmEdge_StringDelete to destroy it.

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

\returns string object. Length will be 0 and Buf will be NULL if failed or the input buffer is a NULL.