Subject: | Net::AMQP::Common - Missing option for long long integer |
Date: | Thu, 11 Jul 2013 16:41:37 +0100 |
To: | bug-Net-AMQP [...] rt.cpan.org |
From: | Martin Krba <martin.krba [...] nike.sk> |
Hi,
I think there is an option for long long integer missing from
Net::AMQP::Common
my %_unpack_field_types = (
V => sub { undef },
S => \&unpack_long_string,
I => \&unpack_long_integer, # original option (uppercase i)
l => \&unpack_long_long_integer, # added option (lowercase L)
D => sub {
my $input_ref = shift;
my $exp = unpack_octet($input_ref);
my $num = unpack_long_integer($input_ref);
$num / 10.0 ** $exp;
},
F => \&unpack_field_table,
A => \&unpack_field_array,
T => \&unpack_timestamp,
t => \&unpack_boolean,
);
Best regards,
Martin Krba