Like Enumerable#grep_v
, but chains operation to be lazy-evaluated.
Expands lazy
enumerator to an array. See Enumerable#to_a
.
Expands lazy
enumerator to an array. See Enumerable#to_a
.
Rewinds the enumerator chain by calling the “rewind” method on each enumerable in reverse order. Each call is performed only if the enumerable responds to the method.
Rewinds the product enumerator by calling the “rewind” method on each enumerable in reverse order. Each call is performed only if the enumerable responds to the method.
Returns the number that defines the common difference between two adjacent elements in this arithmetic sequence.
Returns the first number in this arithmetic sequence, or an array of the first n
elements.
Returns the last number in this arithmetic sequence, or an array of the last n
elements.
Returns the hash value of a given string. This is equivalent to Digest::Class.new(*parameters)
.digest(string), where extra parameters, if any, are passed through to the constructor and the string is passed to digest()
.
Returns the hex-encoded hash value of a given string. This is almost equivalent to Digest.hexencode
(Digest::Class.new(*parameters)
.digest(string)).
Returns the base64 encoded hash value of a given string. The return value is properly padded with ‘=’ and contains no line feeds.
Reset the digest to its initial state and return self
.
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
.
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.
Return the object that this pinned instance references.
Returns true if the reference has been cleared, otherwise returns false.
Or read the memory at address address
with length len
and return a string with that memory