test16 317 B

12345678910111213141516171819202122
  1. #!/usr/bin/perl
  2. #
  3. use strict;
  4. use warnings;
  5. use lib "..";
  6. use Tpl;
  7. my $pwd = `pwd`;
  8. chomp $pwd;
  9. my $i;
  10. my $tpl = Tpl->tpl_map("B",\$i);
  11. $i = pack("CCCC", 0xA, 0xB, 0xC, 0xD);
  12. $tpl->tpl_pack(0);
  13. my $img = $tpl->tpl_dump();
  14. $tpl = Tpl->tpl_map("B",\$i);
  15. $tpl->tpl_load(\$img);
  16. $tpl->tpl_unpack(0);
  17. print "$i\n";