ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-BER-XS/XS.pm
(Generate patch)

Comparing Convert-BER-XS/XS.pm (file contents):
Revision 1.8 by root, Fri Apr 19 20:42:31 2019 UTC vs.
Revision 1.9 by root, Fri Apr 19 20:43:12 2019 UTC

120I<DATA> member, and you may re-assign the array itself, e.g.: 120I<DATA> member, and you may re-assign the array itself, e.g.:
121 121
122 $ber = ber_decode $binbuf; 122 $ber = ber_decode $binbuf;
123 123
124 # the following is NOT legal: 124 # the following is NOT legal:
125 $ber->[BER_CLASS] = ASN_PRIVATE; # ERROR, readonly(!) 125 $ber->[BER_CLASS] = ASN_PRIVATE; # ERROR, class/tag/constructed are readonly(!)
126 126
127 # but all of the following are fine: 127 # but all of the following are fine:
128 $ber->[BER_DATA] = "string"; 128 $ber->[BER_DATA] = "string";
129 $ber->[BER_DATA] = [ASN_UNIVERSAL, ASN_INTEGER32, 0, 123]; 129 $ber->[BER_DATA] = [ASN_UNIVERSAL, ASN_INTEGER32, 0, 123];
130 @$ber = (ASN_APPLICATION, SNMP_TIMETICKS, 1000); 130 @$ber = (ASN_APPLICATION, SNMP_TIMETICKS, 1000);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines