1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00
Martin Pool 31737ace97 Check in examples for tdb packer
(This used to be commit e8f9fbd32b73f60db3683d23a979dc09e7204258)
2002-09-10 08:36:55 +00:00

13 lines
300 B
Python
Executable File

#! /usr/bin/python2.2
def run_trial():
# import tdbutil
from samba.tdbpack import pack
for i in xrange(500000):
pack("ddffd", (10, 2, "mbp", "martin", 0))
#s = "\n\0\0\0" + "\x02\0\0\0" + "mbp\0" + "martin\0" + "\0\0\0\0"
if __name__ == '__main__':
run_trial()