Results for: "pstore"

Reset the digest to the initial state and return self.

Returns the memory address for this closure.

Free this closure explicitly. You can’t use this closure anymore.

If this closure is already freed, this does nothing.

Whether this closure was freed explicitly.

Create a new closure. If a block is given, the created closure is automatically freed after the given block is executed.

The all given arguments are passed to Fiddle::Closure.new. So using this method without block equals to Fiddle::Closure.new.

Example

Fiddle::Closure.create(TYPE_INT, [TYPE_INT]) do |closure|
  # closure is freed automatically when this block is finished.
end

The integer memory location of this function

Returns the memory address for this handle.

No documentation available
No documentation available
No documentation available

Return the object that this pinned instance references.

Returns true if the reference has been cleared, otherwise returns false.

Set the free function for this pointer to function in the given Fiddle::Function.

Get the free function for this pointer.

Returns a new instance of Fiddle::Function.

See Fiddle::Function.new

Returns if the free function for this pointer has been called.

Returns the integer memory location of this pointer.

Returns a new Fiddle::Pointer instance that is a reference pointer for this pointer.

Analogous to the ampersand operator in C.

ptr.to_s        => string
ptr.to_s(len)   => string

Returns the pointer contents as a string.

When called with no arguments, this method will return the contents until the first NULL byte.

When called with len, a string of len bytes will be returned.

See to_str

Wakes up all threads waiting for this lock.

Returns the string representation of the bignum.

BN.new can parse the encoded string to convert back into an OpenSSL::BN.

base

The format. Must be one of the following:

  • 0 - MPI format. See the man page BN_bn2mpi(3) for details.

  • 2 - Variable-length and big-endian binary encoding. The sign of the bignum is ignored.

  • 10 - Decimal number representation, with a leading ‘-’ for a negative bignum.

  • 16 - Hexadeciaml number representation, with a leading ‘-’ for a negative bignum.

No documentation available

Fully resets the internal state of the Cipher. By using this, the same Cipher instance may be used several times for encryption or decryption tasks.

Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, -1).

Return the hash value computed with name Digest. name is either the long name or short name of a supported digest algorithm.

Examples

OpenSSL::Digest.digest("SHA256", "abc")

which is equivalent to:

OpenSSL::Digest.digest('SHA256', "abc")

Resets the Digest in the sense that any Digest#update that has been performed is abandoned and the Digest is set to its initial state again.

Returns the authentication code an a Base64-encoded string.

Search took: 2ms  ·  Total Results: 3094