Lines Matching refs:pbuf
52 static PyObject *pytdbunpack_item(char, char **pbuf, int *plen, PyObject *);
59 pytdbunpack_string(char **pbuf, int *plen, const char *encoding);
61 static void pack_le_uint32(unsigned long val_long, unsigned char *pbuf);
435 static void pack_le_uint32(unsigned long val_long, unsigned char *pbuf)
437 pbuf[0] = val_long & 0xff;
438 pbuf[1] = (val_long >> 8) & 0xff;
439 pbuf[2] = (val_long >> 16) & 0xff;
440 pbuf[3] = (val_long >> 24) & 0xff;
445 unsigned char **pbuf)
447 memcpy(*pbuf, from, len);
448 (*pbuf) += len;
531 pytdbunpack_uint32(char **pbuf, int *plen)
541 b = *pbuf;
544 (*pbuf) += 4;
551 static PyObject *pytdbunpack_int16(char **pbuf, int *plen)
561 b = *pbuf;
564 (*pbuf) += 2;
572 pytdbunpack_string(char **pbuf, int *plen, const char *encoding)
577 start = *pbuf;
587 *pbuf += len + 1; /* skip \0 */
595 pytdbunpack_buffer(char **pbuf, int *plen, PyObject *val_list)
608 b = *pbuf;
617 (*pbuf) += 4;
619 start = *pbuf;
629 (*pbuf) += slen;
665 char **pbuf,
672 unpacked = pytdbunpack_int16(pbuf, plen);
676 unpacked = pytdbunpack_uint32(pbuf, plen);
679 unpacked = pytdbunpack_string(pbuf, plen, pytdb_unix_encoding);
682 return pytdbunpack_buffer(pbuf, plen, val_list);