check the scheme v
component against the URI::Parser
Regexp
for :SCHEME
check the password v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :USERINFO
Can not have a registry or opaque component defined, with a user component defined.
protected setter for the password component v
see also URI::Generic.password=
escapes ‘user:password’ v
based on RFC 1738 section 3.1
check the opaque v
component for RFC2396 compliance and against the URI::Parser
Regexp
for :OPAQUE
Can not have a host, port, user or path component defined, with an opaque component defined.
private method to cleanup dn
from using the path
component attribute
private method to cleanup attributes
, scope
, filter
and extensions
, from using the query
component attribute
private setter for attributes val
The content-length header
This method provides the metavariables defined by the revision 3 of “The WWW Common Gateway Interface Version 1.1” To browse the current document of CGI
Version 1.1, see below: tools.ietf.org/html/rfc3875
The response’s HTTP status line
The content-length header
Sets the content-length header to len
Returns an array containing the values associated with the given keys.
Calls the given block once for each key
, value
pair in the database.
Returns self
.
Returns the length of the hash value of the digest.
This method should be overridden by each implementation subclass. If not, digest_obj.digest().length() is returned.
Returns the block length of the digest.
This method is overridden by each implementation subclass.
Given a String of C type ty
, returns the corresponding Fiddle
constant.
ty
can also accept an Array of C type Strings, and will be returned in a corresponding Array.
If Hash
tymap
is provided, ty
is expected to be the key, and the value will be the C type to be looked up.
Example:
include Fiddle::CParser #=> Object parse_ctype('int') #=> Fiddle::TYPE_INT parse_ctype('double diff') #=> Fiddle::TYPE_DOUBLE parse_ctype('unsigned char byte') #=> -Fiddle::TYPE_CHAR parse_ctype('const char* const argv[]') #=> -Fiddle::TYPE_VOIDP
Creates a class to wrap the C struct with the value ty
See also Fiddle::Importer.struct
Consumes size
bytes from the buffer
Returns an Array of individual raw profile data Hashes ordered from earliest to latest by :GC_INVOKE_TIME
.
For example:
[ { :GC_TIME=>1.3000000000000858e-05, :GC_INVOKE_TIME=>0.010634999999999999, :HEAP_USE_SIZE=>289640, :HEAP_TOTAL_SIZE=>588960, :HEAP_TOTAL_OBJECTS=>14724, :GC_IS_MARKED=>false }, # ... ]
The keys mean:
:GC_TIME
:GC_INVOKE_TIME
Time
elapsed in seconds from startup to when the GC
was invoked
:HEAP_USE_SIZE
Total bytes of heap used
:HEAP_TOTAL_SIZE
Total size of heap in bytes
:HEAP_TOTAL_OBJECTS
Total number of objects
:GC_IS_MARKED
Returns true
if the GC
is in mark phase
If ruby was built with GC_PROFILE_MORE_DETAIL
, you will also have access to the following hash keys:
:GC_MARK_TIME
:GC_SWEEP_TIME
:ALLOCATE_INCREASE
:ALLOCATE_LIMIT
:HEAP_USE_PAGES
:HEAP_LIVE_OBJECTS
:HEAP_FREE_OBJECTS
:HAVE_FINALIZE
The total time used for garbage collection in seconds