Lines Matching refs:soself
1502 s_unpack_internal(PyStructObject *soself, const char *startfrom) { in s_unpack_internal() argument
1505 PyObject *result = PyTuple_New(soself->s_len); in s_unpack_internal()
1509 for (code = soself->s_codes; code->fmtdef != NULL; code++) { in s_unpack_internal()
1776 s_pack_internal(PyStructObject *soself, PyObject *const *args, int offset, char* buf) in s_pack_internal() argument
1783 memset(buf, '\0', soself->s_size); in s_pack_internal()
1785 for (code = soself->s_codes; code->fmtdef != NULL; code++) { in s_pack_internal()
1866 PyStructObject *soself; in s_pack() local
1869 soself = (PyStructObject *)self; in s_pack()
1871 assert(soself->s_codes != NULL); in s_pack()
1872 if (nargs != soself->s_len) in s_pack()
1875 "pack expected %zd items for packing (got %zd)", soself->s_len, nargs); in s_pack()
1882 buf = _PyBytesWriter_Alloc(&writer, soself->s_size); in s_pack()
1889 if ( s_pack_internal(soself, args, 0, buf) != 0 ) { in s_pack()
1894 return _PyBytesWriter_Finish(&writer, buf + soself->s_size); in s_pack()
1908 PyStructObject *soself; in s_pack_into() local
1913 soself = (PyStructObject *)self; in s_pack_into()
1915 assert(soself->s_codes != NULL); in s_pack_into()
1916 if (nargs != (soself->s_len + 2)) in s_pack_into()
1929 soself->s_len, (nargs - 2)); in s_pack_into()
1949 if (offset + soself->s_size > 0) { in s_pack_into()
1952 soself->s_size, in s_pack_into()
1972 if ((buffer.len - offset) < soself->s_size) { in s_pack_into()
1974 assert(soself->s_size >= 0); in s_pack_into()
1980 (size_t)soself->s_size + (size_t)offset, in s_pack_into()
1981 soself->s_size, in s_pack_into()
1989 if (s_pack_internal(soself, args, 2, (char*)buffer.buf + offset) != 0) { in s_pack_into()