summaryrefslogtreecommitdiff
path: root/source3/python/py_tdbpack.c
AgeCommit message (Collapse)AuthorFilesLines
2002-11-05pytdbpack_pack_data: Oops, since B is separately encoded as buffer andMartin Pool1-5/+8
length we need separate counters traversing the format and value sequences to pack them. (This used to be commit 49a0ba46e6693bb819440d4ab40045afc4a7ae17)
2002-11-05pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form listMartin Pool1-21/+45
by appending, rather than preallocating. (This used to be commit d72b144e03b9a9cb3d676527ddc5b2d0e1ef42f8)
2002-11-04pytdbpack_pack_data: Allow 'd' and 'w' formats to take either IntegerMartin Pool1-2/+20
or Long arguments. (This used to be commit 2085595565b99295d04a6663aad1ccac5bc1b657)
2002-11-04Make sure uint32 unpacking is unsigned, and generates a Python long soMartin Pool1-10/+10
that it can represent all the unsigned values (This used to be commit 2593e1588355643bb76a9b8869573fe38fd3bc3e)
2002-11-04pytdbpack_calc_reqd_len: Correct calculation of packed length ofMartin Pool1-5/+8
string types (This used to be commit 30525aee33237f5b17e1067a96d09b7ee0a516a6)
2002-11-04Change to representing buffers ('B') as (LEN, STRING) in Python,Martin Pool1-130/+112
rather than as just a string. Makes the code more messy, but needed for compatibility with existing PSA Python code which seems to be too knotty to separate out. (This used to be commit 20d88a7d1e2a6d2daca29c5ffff3781197a97b57)
2002-11-04pytdbpack_calc_reqd_len: It's no longer an error to supply more dataMartin Pool1-8/+2
values than are consumed. (This used to be commit 0c1cfe559877d51090409d67f983a82bbbbaa7e2)
2002-11-04DocMartin Pool1-2/+5
(This used to be commit 21e41866425c6f8bf04b08b3edd5bf70caf56e32)
2002-11-04pytdbpack_calc_reqd_len: Make exception be thrown correctly when aMartin Pool1-2/+5
non-string is used with a string format code. (It was being generated but not thrown.) Also call checked versions of some functions rather than FAST_* versions. (This used to be commit 1b681bd524764deaef657ef41c39d037ac7dcc7b)
2002-10-21Give better error messages for TypeError, which will arise if e.g. youMartin Pool1-10/+24
try to pack an Int using a string tdbpack format. (This used to be commit 6139ab3cbca3fc2969d1e578b38394b1f6aeb9c3)
2002-09-09Import my code to do reasonably fast tdbpack/unpack from PythonMartin Pool1-0/+662
(This used to be commit 1f7ed8bb863fdacd0b9f3bc2e1e5d72ec7051feb)