Value.this

Create a #SecretValue for the secret data passed in. The secret data is not copied, and will later be freed with the @destroy function.

If the length is less than zero, then @secret is assumed to be null-terminated.

  1. this(SecretValue* secretValue, bool ownedRef)
  2. this(string secret, ptrdiff_t length, string contentType)
  3. this(string secret, ptrdiff_t length, string contentType, GDestroyNotify destroy)
    class Value
    this
    (
    string secret
    ,
    ptrdiff_t length
    ,,
    GDestroyNotify destroy
    )

Parameters

secret string

the secret data

length ptrdiff_t

the length of the data

contentType string

the content type of the data

destroy GDestroyNotify

function to call to free the secret data

Return Value

the new #SecretValue

Throws

ConstructionException GTK+ fails to create the object.

Meta