Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /opt/doc/python-2.3.4/html/Python-Docs-2.3.4/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
|
| ) |
| ) |
In general, you can pack any of the most common XDR data types by
calling the appropriate pack_type() method. Each method
takes a single argument, the value to pack. The following simple data
type packing methods are supported: pack_uint(),
pack_int(), pack_enum(), pack_bool(),
pack_uhyper(), and pack_hyper().
| value) |
| value) |
The following methods support packing strings, bytes, and opaque data:
| n, s) |
| n, data) |
| s) |
| data) |
| bytes) |
The following methods support packing arrays and lists:
| list, pack_item) |
1 is packed first, followed by the data value
from the list. pack_item is the function that is called to pack
the individual item. At the end of the list, an unsigned integer
0 is packed.
For example, to pack a list of integers, the code might appear like this:
import xdrlib p = xdrlib.Packer() p.pack_list([1, 2, 3], p.pack_int)
| n, array, pack_item) |
len(array) is not equal to n. As above,
pack_item is the function used to pack each element.
| list, pack_item) |
See About this document... for information on suggesting changes.
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.017 ]-- |