Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

parse::dmidecode::handle(3pm) [debian man page]

Parse::DMIDecode::Handle(3pm)				User Contributed Perl Documentation			     Parse::DMIDecode::Handle(3pm)

NAME
Parse::DMIDecode::Handle - SMBIOS Structure Handle Object Class SYNOPSIS
use Parse::DMIDecode qw(); my $decoder = new Parse::DMIDecode; $decoder->probe; for my $handle ($decoder->get_handles) { printf("Handle %s of type %s is %s bytes long (minus strings). ". " > Contians the following keyword data entries: ", $handle->handle, $handle->dmitype, $handle->bytes ); for my $keyword ($handle->keywords) { my $value = $handle->keyword($keyword); printf("Keyword "%s" => "%s" ", $keyword, (ref($value) eq 'ARRAY' ? join(', ',@{$value}) : ($value||'')) ); } } DESCRIPTION
METHODS
new Create a new struture handle object. This is called by Parse::DMIDecode's parse() (and indirectly by probe()) methods. raw my $raw_data = $handle->raw; Returns the raw data as generated by dmidecode that was parsed to create this handle object. bytes my $bytes = $handle->bytes; address my $address = $handle->address; Returns the address handle of the structure. handle Alias for address. dmitype my $dmitype = $handle->dmitype; type Alias for dmitype. description my $description = $handle->description; keywords my @keywords = $handle->keywords; Returns a list of keyword data pairs available for retreival from this handle object. keyword for my $keyword ($handle->keywords) { printf("Keyword "%s" => "%s" ", $keyword, $handle->keyword($keyword) ); } parsed_structures use Data::Dumper; my $ref = $handle->parsed_structures; print Dumper($ref); Returns a copy of the parsed structures. This should be used with care as this is a cloned copy of the parsed data structures that the Parse::DMIDecode::Handle object uses internally, and as such may change format in later releases without notice. SEE ALSO
Parse::DMIDecode VERSION
$Id: Handle.pm 976 2007-03-04 20:47:36Z nicolaw $ AUTHOR
Nicola Worthington <nicolaw@cpan.org> <http://perlgirl.org.uk> If you like this software, why not show your appreciation by sending the author something nice from her Amazon wishlist ? <http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority> COPYRIGHT
Copyright 2006 Nicola Worthington. This software is licensed under The Apache Software License, Version 2.0. <http://www.apache.org/licenses/LICENSE-2.0> perl v5.10.1 2009-12-02 Parse::DMIDecode::Handle(3pm)

Check Out this Related Man Page

Crypt::Random::Source::Base::Handle(3pm)		User Contributed Perl Documentation		  Crypt::Random::Source::Base::Handle(3pm)

NAME
Crypt::Random::Source::Base::Handle - IO::Handle based random data sources SYNOPSIS
use Moose; extends qw(Crypt::Random::Source::Base::Handle); sub open_handle { # invoked as needed } # this class can also be used directly Crypt::Random::Source::Base::Handle->new( handle => $file_handle ); # it supports some standard methods: $p->blocking(0); $p->read( my $buf, $n ); # no error handling here DESCRIPTION
This is a concrete base class for all IO::Handle based random data sources. It implements error handling ATTRIBUTES
handle An IO::Handle or file handle to read from. blocking This is actually handled by "handle", and is documented in IO::Handle. allow_under_read Whether or not under reading is considered an error. Defaults to false. reread_attempts The number of attempts to make at rereading if the handle did not provide enough bytes on the first attempt. Defaults to 1. Only used if "allow_under_read" is enabled. METHODS
get See "get" in Crypt::Random::Source::Base. When "blocking" or "allow_under_read" are set to a true value this method may return fewer bytes than requested. read This delegates directly to "handle". It DOES NOT provide the same validation as "get" would have, so no checking for underreads is done. close Close the handle and clear it. _read "$self->handle->read" but with additional error checking and different calling conventions. _read_too_short Called by "_read" when not enough data was read from the handle. Normally it will either die with an error or attempt to reread. When "allow_under_read" is true it will just return the partial buffer. open_handle Abstract method, should return an IO::Handle to use. AUTHOR
Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Yuval Kogman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-01-05 Crypt::Random::Source::Base::Handle(3pm)
Man Page