Gets the size in bytes of the array buffer.
Invoke <function>new</function> with constructor referenced by value. If n_parameters is 0 no parameters will be passed to the constructor.
Call function referenced by value, passing the given parameters. If n_parameters is 0 no parameters will be passed to the function.
Get the #JSCContext in which value was created.
Get whether the value referenced by value is an array.
Check whether the value is an ArrayBuffer.
Get whether the value referenced by value is a boolean.
Get whether the value referenced by value is a constructor.
Get whether the value referenced by value is a function
Get whether the value referenced by value is <function>null</function>.
Get whether the value referenced by value is a number.
Get whether the value referenced by value is an object.
Get whether the value referenced by value is a string
Determines whether a value is a typed array.
Get whether the value referenced by value is <function>undefined</function>.
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 <function>Object.defineProperty()</function> when used with a data descriptor.
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.
Invoke method with name on object referenced by value, passing the given parameters. If n_parameters is 0 no parameters will be passed to the method. The object instance will be handled automatically even when the method is a custom one registered with javascriptcore.class_.Class.addMethod, so it should never be passed explicitly as parameter of this function.
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.
Returns this, for use in with statements.
Convert value to a boolean.
Convert value to a double.
Convert value to a #gint32.
Create a JSON string of value serialization. If indent is 0, the resulting JSON will not contain newlines. The size of the indent is clamped to 10 spaces.
Convert value to a string and return the results as #GBytes. This is needed to handle strings with null characters.
Convert value to a string. Use javascriptcore.value.Value.toStringAsBytes instead, if you need to handle strings containing null characters.
Obtain the ArrayBuffer for the memory region of the typed array elements.
Obtains a pointer to the memory region that holds the elements of the typed array; modifications done to them will be visible to JavaScript code. If length is not null, the number of elements contained in the typed array are also stored in the pointed location.
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.
Creates a new ArrayBuffer from existing data in memory.
Create a new #JSCValue referencing an array with the items from array. If array is null or empty a new empty array will be created. Elements of array should be pointers to a #JSCValue.
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 new #JSCValue referencing <function>null</function> in context.
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 instance that will be freed by the #GDestroyNotify passed to javascriptcore.context.Context.registerClass.
Creates a new Promise. executor will be invoked during promise initialization and it receives the resolve and reject objects than can be called to resolve or reject the promise. It is called like a JavaScript function, so exceptions raised during the executor invocation will not be propagated to the context, but handled by the promise causing a rejection.
Create a new #JSCValue from string. If you need to create a #JSCValue from a string containing null characters, use javascriptcore.value.Value.newStringFromBytes instead.
Create a new #JSCValue from bytes.
Create a new typed array containing a given amount of elements.
Create a new #JSCValue referencing <function>undefined</function> in context.
Set the GObject of a D ObjectWrap wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectWrap.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectWrap.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectWrap.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectWrap.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectWrap.ref_ and gobject.object.ObjectWrap.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
JSCValue represents a reference to a value in a #JSCContext. The JSCValue protects the referenced value from being garbage collected.