Constructor

JavaScriptCoreValuenew_string_from_bytes

Declaration [src]

JSCValue*
jsc_value_new_string_from_bytes (
  JSCContext* context,
  GBytes* bytes
)

Description [src]

Create a new JSCValue from bytes.

Parameters

context

Type: JSCContext

A JSCContext.

The data is owned by the caller of the function.
bytes

Type: GBytes

A GBytes.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: JSCValue

A JSCValue.

The caller of the function takes ownership of the data, and is responsible for freeing it.