git.samba.org
/
metze
/
old
/
v3-2-winbind-ndr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
dummy commit
[metze/old/v3-2-winbind-ndr.git]
/
source
/
python
/
examples
/
tdbpack
/
tdbtimetrial.py
1
#! /usr/bin/python
2
3
def run_trial():
4
# import tdbutil
5
from samba.tdbpack import pack
6
7
for i in xrange(500000):
8
pack("ddffd", (10, 2, "mbp", "martin", 0))
9
#s = "\n\0\0\0" + "\x02\0\0\0" + "mbp\0" + "martin\0" + "\0\0\0\0"
10
11
if __name__ == '__main__':
12
run_trial()