Lines Matching refs:soself
1481 s_unpack_internal(PyStructObject *soself, const char *startfrom) { in s_unpack_internal() argument
1484 PyObject *result = PyTuple_New(soself->s_len); in s_unpack_internal()
1488 for (code = soself->s_codes; code->fmtdef != NULL; code++) { in s_unpack_internal()
1736 s_pack_internal(PyStructObject *soself, PyObject *const *args, int offset, char* buf) in s_pack_internal() argument
1743 memset(buf, '\0', soself->s_size); in s_pack_internal()
1745 for (code = soself->s_codes; code->fmtdef != NULL; code++) { in s_pack_internal()
1825 PyStructObject *soself; in s_pack() local
1829 soself = (PyStructObject *)self; in s_pack()
1831 assert(soself->s_codes != NULL); in s_pack()
1832 if (nargs != soself->s_len) in s_pack()
1835 "pack expected %zd items for packing (got %zd)", soself->s_len, nargs); in s_pack()
1840 result = PyBytes_FromStringAndSize((char *)NULL, soself->s_size); in s_pack()
1845 if ( s_pack_internal(soself, args, 0, PyBytes_AS_STRING(result)) != 0 ) { in s_pack()
1864 PyStructObject *soself; in s_pack_into() local
1869 soself = (PyStructObject *)self; in s_pack_into()
1871 assert(soself->s_codes != NULL); in s_pack_into()
1872 if (nargs != (soself->s_len + 2)) in s_pack_into()
1885 soself->s_len, (nargs - 2)); in s_pack_into()
1905 if (offset + soself->s_size > 0) { in s_pack_into()
1908 soself->s_size, in s_pack_into()
1928 if ((buffer.len - offset) < soself->s_size) { in s_pack_into()
1930 assert(soself->s_size >= 0); in s_pack_into()
1936 (size_t)soself->s_size + (size_t)offset, in s_pack_into()
1937 soself->s_size, in s_pack_into()
1945 if (s_pack_internal(soself, args, 2, (char*)buffer.buf + offset) != 0) { in s_pack_into()