Lines Matching refs:unpack
2 Generic pack()/unpack() tests
11 print_r(unpack("A", pack("A", "hello world")));
12 print_r(unpack("A*", pack("A*", "hello world")));
16 print_r(unpack("C", pack("C", -127)));
17 print_r(unpack("C", pack("C", 127)));
18 print_r(unpack("C", pack("C", 255)));
19 print_r(unpack("C", pack("C", -129)));
21 print_r(unpack("H", pack("H", 0x04)));
23 print_r(unpack("I", pack("I", 65534)));
24 print_r(unpack("I", pack("I", 0)));
25 print_r(unpack("I", pack("I", -1000)));
26 print_r(unpack("I", pack("I", -64434)));
27 print_r(unpack("I", pack("I", 4294967296)));
28 print_r(unpack("I", pack("I", -4294967296)));
30 print_r(unpack("L", pack("L", 65534)));
31 print_r(unpack("L", pack("L", 0)));
32 print_r(unpack("L", pack("L", 2147483650)));
33 print_r(unpack("L", pack("L", 4294967295)));
34 print_r(unpack("L", pack("L", -2147483648)));
36 print_r(unpack("N", pack("N", 65534)));
37 print_r(unpack("N", pack("N", 0)));
38 print_r(unpack("N", pack("N", 2147483650)));
39 print_r(unpack("N", pack("N", 4294967296)));
40 print_r(unpack("N", pack("N", -2147483648)));
41 print_r(unpack("N", pack("N", -30000)));
43 print_r(unpack("S", pack("S", 65534)));
44 print_r(unpack("S", pack("S", 65537)));
45 print_r(unpack("S", pack("S", 0)));
46 print_r(unpack("S", pack("S", -1000)));
47 print_r(unpack("S", pack("S", -64434)));
48 print_r(unpack("S", pack("S", -65535)));
50 print_r(unpack("V", pack("V", 65534)));
51 print_r(unpack("V", pack("V", 0)));
52 print_r(unpack("V", pack("V", 2147483650)));
53 print_r(unpack("V", pack("V", 4294967296)));
54 print_r(unpack("V", pack("V", -2147483648)));
56 print_r(unpack("a", pack("a", "hello world")));
57 print_r(unpack("a*", pack("a*", "hello world")));
59 print_r(unpack("c", pack("c", -127)));
60 print_r(unpack("c", pack("c", 127)));
61 print_r(unpack("c", pack("c", 255)));
62 print_r(unpack("c", pack("c", -129)));
64 print_r(unpack("h", pack("h", 3000000)));
66 print_r(unpack("i", pack("i", 65534)));
67 print_r(unpack("i", pack("i", 0)));
68 print_r(unpack("i", pack("i", -1000)));
69 print_r(unpack("i", pack("i", -64434)));
70 print_r(unpack("i", pack("i", -65535)));
71 print_r(unpack("i", pack("i", -2147483647)));
73 print_r(unpack("l", pack("l", 65534)));
74 print_r(unpack("l", pack("l", 0)));
75 print_r(unpack("l", pack("l", 2147483650)));
76 print_r(unpack("l", pack("l", 4294967296)));
77 print_r(unpack("l", pack("l", -2147483648)));
79 print_r(unpack("n", pack("n", 65534)));
80 print_r(unpack("n", pack("n", 65537)));
81 print_r(unpack("n", pack("n", 0)));
82 print_r(unpack("n", pack("n", -1000)));
83 print_r(unpack("n", pack("n", -64434)));
84 print_r(unpack("n", pack("n", -65535)));
86 print_r(unpack("s", pack("s", 32767)));
87 print_r(unpack("s", pack("s", 65535)));
88 print_r(unpack("s", pack("s", 0)));
89 print_r(unpack("s", pack("s", -1000)));
90 print_r(unpack("s", pack("s", -64434)));
91 print_r(unpack("s", pack("s", -65535)));
93 print_r(unpack("v", pack("v", 65534)));
94 print_r(unpack("v", pack("v", 65537)));
95 print_r(unpack("v", pack("v", 0)));
96 print_r(unpack("v", pack("v", -1000)));
97 print_r(unpack("v", pack("v", -64434)));
98 print_r(unpack("v", pack("v", -65535)));