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.
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
.
Returns the memory address for this closure
The integer memory location of this function
Returns the memory address for this handle.
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
.
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
base - Integer
Valid values:
0 - MPI
2 - binary
10 - the default
16 - hex