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

Copy the content of WasmEdge_String object to the buffer.

This function copy at most Len characters from the WasmEdge_String object to the destination buffer. If the string length is less than Len characters long, the remainder of the buffer is filled with `\0’ characters. Otherwise, the destination is not terminated.

\param Str the source WasmEdge_String object to copy. \param Buf the buffer to fill the string content. \param Len the buffer length.

\returns the copied length of string.