Dyn::Callback::Value - dyncall value variant
Value variant union-type that carries all supported dyncall types.
This package is object oriented and brings along the following methods...
new( )
my $value = Dyn::Callback::Value->new();
Generates a new Dyn::Callback::Value object.
B( [...] )
if ( $value->B ) { ... } $value->B( !0 );
Gets and potentially sets the boolean value of the underlying union.
c( [...] )
if ( $value->c ) { ... } $value->c( ord 'a' );
Gets and potentially sets the char value of the underlying union.
C( [...] )
if ( $value->C ) { ... } $value->C( ord 'a' );
Gets and potentially sets the unsigned char value of the underlying union.
s( [...] )
if ( $value->s == -5 ) { ... } $value->s( -16 );
Gets and potentially sets the short value of the underlying union.
S( [...] )
if ( $value->S > 3 ) { ... } $value->S( 44 );
Gets and potentially sets the unsigned short value of the underlying union.
i( [...] )
if ( $value->i == -5 ) { ... } $value->i( -16 );
Gets and potentially sets the int value of the underlying union.
I( [...] )
if ( $value->I > 3 ) { ... } $value->I( 44 );
Gets and potentially sets the unsigned int value of the underlying union.
j( [...] )
if ( $value->j == -5 ) { ... } $value->j( -16 );
Gets and potentially sets the long value of the underlying union.
J( [...] )
if ( $value->J > 3 ) { ... } $value->J( 44 );
Gets and potentially sets the unsigned long value of the underlying union.
l( [...] )
if ( $value->l == -5 ) { ... } $value->j( -16 );
Gets and potentially sets the long long value of the underlying union.
L( [...] )
if ( $value->L > 3 ) { ... } $value->L( 44 );
Gets and potentially sets the unsigned long long value of the underlying union.
f( [...] )
if ( $value->f == -5 ) { ... } $value->f( -16 );
Gets and potentially sets the float value of the underlying union.
d( [...] )
if ( $value->d > 3 ) { ... } $value->d( 44 );
Gets and potentially sets the double value of the underlying union.
p( [...] )
if ( $value->p ) { ... } $value->p( $window );
Gets and potentially sets the void pointer value of the underlying union.
Z( [...] )
if ( $value->Z eq 'Keep things going.' ) { ... } $value->Z( 'Do you know?' );
Gets and potentially sets the const char pointer (...a string) value of the underlying union.
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
Sanko Robinson <sanko@cpan.org>
To install Affix, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Affix
CPAN shell
perl -MCPAN -e shell install Affix
For more information on module installation, please visit the detailed CPAN module installation guide.