Gck.Builder.prototype.take_data

function take_data(attr_type: Number(gulong), value: Number(guint8), length: Number(gsize)): void {
    // Gjs wrapper for gck_builder_take_data()
}
  

Add a new attribute to the builder with an arbitrary value. Unconditionally adds a new attribute, even if one with the same attr_type already exists.

Ownership of the value memory is taken by the builder, may be reallocated, and is eventually freed with g_free(). The memory must have been allocated using the standard GLib memory allocation routines.

null may be specified for the value argument, in which case an empty attribute is created. GCK_INVALID may be specified for the length, in which case an invalid attribute is created in the PKCS\#11 style.

attr_type

the new attribute type

value

(array length=length): (allow-none): the new attribute memory

length

the length of the memory