Value
JSCValue represents a reference to a value in a #JSCContext. The JSCValue protects the referenced value from being garbage collected.
Skipped during bindings generation
parameter
size
: Unsupported pointer to primitive typeparameter
parameters
: Array parameter of type Value is not supportedparameter
parameters
: Array parameter of type Value is not supportedmethod
object_define_property_accessor
: User data 'user_data' cannot be shared by multiple closuresparameter
parameters
: Array parameter of type Value is not supportedparameter
length
: length: Out parameter is not supportedconstructor
new_array
: Varargs parameter is not supportedparameter
array
: GLib.PtrArray parameter of type Value is not supportedparameter
parameter_types
: Array parameter of type GType is not supported
Constructors
Creates a new %ArrayBuffer from existing @data in memory.
Create a new #JSCValue referencing an array of strings with the items from @strv. If @array is null or empty a new empty array will be created.
Create a new #JSCValue from @value
Create a new #JSCValue referencing a new value created by parsing @json.
Create a function in @context. If @name is null an anonymous function will be created. When the function is called by JavaScript or jsc_value_function_call(), @callback is called receiving an #GPtrArray of #JSCValues with the arguments and then @user_data as last parameter. When the function is cleared in @context, @destroy_notify is called with @user_data as parameter.
Create a new #JSCValue referencing
Create a new #JSCValue from @number.
Create a new #JSCValue from @instance. If @instance is null a new empty object is created. When @instance is provided, @jsc_class must be provided too. @jsc_class takes ownership of
Create a new #JSCValue from @string. If you need to create a #JSCValue from a string containing null characters, use jsc_value_new_string_from_bytes() instead.
Create a new #JSCValue from @bytes.
Create a new typed array containing a given amount of elements.
Functions
Gets the size in bytes of the array buffer.
Check whether the @value is an %ArrayBuffer.
Get whether the value referenced by @value is a constructor.
Get whether the value referenced by @value is a function
Determines whether a value is a typed array.
Get whether the value referenced by @value is
Create a new typed array value with elements from an array buffer.
Define or modify a property with @property_name in object referenced by @value. This is equivalent to JavaScript
Try to delete property with @name from @value. This function will return false if the property was defined without %JSC_VALUE_PROPERTY_CONFIGURABLE flag.
Get the list of property names of @value. Only properties defined with %JSC_VALUE_PROPERTY_ENUMERABLE flag will be collected.
Get property with @name from @value.
Get property at @index from @value.
Get whether @value has property with @name.
Get whether the value referenced by @value is an instance of class @name.
Set @property with @name on @value.
Set @property at @index on @value.
Convert @value to a string and return the results as #GBytes. This is needed to handle strings with null characters.
Obtain the %ArrayBuffer for the memory region of the typed array elements.
Gets the number of elements in a typed array.
Gets the offset over the underlying array buffer data.
Gets the size of a typed array.
Gets the type of elements contained in a typed array.