Skip to main content

FRENewObjectFromUTF8

Function FRENewObjectFromUTF8 

Source
pub unsafe extern "C" fn FRENewObjectFromUTF8(
    length: u32,
    value: FREStr,
    object: *mut FREObject,
) -> FREResult
Expand description

Creates a new String object that contains a copy of the specified string.

ยงParameters

  • length: The length, in bytes, of the original string. Must include the NUL terminator.

ยง๐Ÿ˜ก๐Ÿ‘†

IT DOES NOT INCLUDE THE NUL TERMINATOR IN PRACTICE.

  • value: A pointer to the original string.
  • object: Receives a reference to the new string object.

ยงReturns