Gck.Attribute.prototype.init_copy

function init_copy(src: Gck.Attribute): void {
    // Gjs wrapper for gck_attribute_init_copy()
}
  

Initialize a PKCS\#11 attribute as a copy of another attribute. This copies the value memory as well.

When done with the copied attribute you should use Gck.Attribute.prototype.clear to free the internal memory.

src

An attribute to copy.