Lines Matching refs:write_func

348     Py_ssize_t (*write_func)(struct Picklerobject *, const char *, Py_ssize_t);  member
796 if (self->write_func(self, s, len) < 0) in get()
885 if (self->write_func(self, c_str, len) < 0) in put2()
1008 if (self->write_func(self, &none, 1) < 0) in save_none()
1023 if (self->write_func(self, &opcode, 1) < 0) in save_bool()
1026 else if (self->write_func(self, buf[l], len[l]) < 0) in save_bool()
1049 if (self->write_func(self, c_str, strlen(c_str)) < 0) in save_int()
1074 if (self->write_func(self, c_str, len) < 0) in save_int()
1104 i = self->write_func(self, c_str, 2); in save_long()
1161 i = self->write_func(self, c_str, size); in save_long()
1163 i = self->write_func(self, (char *)pdata, (int)nbytes); in save_long()
1178 if (self->write_func(self, &l, 1) < 0) in save_long()
1181 if (self->write_func(self, in save_long()
1186 if (self->write_func(self, "\n", 1) < 0) in save_long()
1207 if (self->write_func(self, str, 9) < 0) in save_float()
1215 if (self->write_func(self, &op, 1) < 0) in save_float()
1224 if (self->write_func(self, buf, strlen(buf)) < 0) in save_float()
1227 if (self->write_func(self, "\n", 1) < 0) in save_float()
1261 if (self->write_func(self, &string, 1) < 0) in save_string()
1264 if (self->write_func(self, repr_str, len) < 0) in save_string()
1267 if (self->write_func(self, "\n", 1) < 0) in save_string()
1293 if (self->write_func(self, c_str, len) < 0) in save_string()
1301 if (self->write_func(self, in save_string()
1432 if (self->write_func(self, &string, 1) < 0) in save_unicode()
1435 if (self->write_func(self, repr_str, len) < 0) in save_unicode()
1438 if (self->write_func(self, "\n", 1) < 0) in save_unicode()
1463 if (self->write_func(self, c_str, len) < 0) in save_unicode()
1472 if (self->write_func(self, PyString_AS_STRING(repr), in save_unicode()
1548 if (self->write_func(self, c_str, len) >= 0) in save_tuple()
1572 if (self->write_func(self, &pop, 1) < 0) in save_tuple()
1581 if (self->write_func(self, len2opcode + len, 1) < 0) in save_tuple()
1589 if (self->write_func(self, &MARKv, 1) < 0) in save_tuple()
1598 if (self->write_func(self, &pop_mark, 1) < 0) in save_tuple()
1606 if (self->write_func(self, &pop, 1) < 0) in save_tuple()
1616 if (self->write_func(self, &tuple, 1) < 0) in save_tuple()
1659 if (self->write_func(self, &append, 1) < 0) in batch_list()
1686 if (self->write_func(self, &append, 1) < 0) in batch_list()
1695 if (self->write_func(self, &MARKv, 1) < 0) in batch_list()
1721 if (self->write_func(self, &appends, 1) < 0) in batch_list()
1755 if (self->write_func(self, s, len) < 0) in save_list()
1834 if (self->write_func(self, &setitem, 1) < 0) in batch_dict()
1868 if (self->write_func(self, &setitem, 1) < 0) in batch_dict()
1877 if (self->write_func(self, &MARKv, 1) < 0) in batch_dict()
1912 if (self->write_func(self, &setitems, 1) < 0) in batch_dict()
1955 if (self->write_func(self, &setitem, 1) < 0) in batch_dict_exact()
1963 if (self->write_func(self, &MARKv, 1) < 0) in batch_dict_exact()
1973 if (self->write_func(self, &setitems, 1) < 0) in batch_dict_exact()
2007 if (self->write_func(self, s, len) < 0) in save_dict()
2062 if (self->write_func(self, &MARKv, 1) < 0) in save_inst()
2120 if (self->write_func(self, &inst, 1) < 0) in save_inst()
2123 if (self->write_func(self, module_str, module_size) < 0) in save_inst()
2126 if (self->write_func(self, "\n", 1) < 0) in save_inst()
2129 if (self->write_func(self, name_str, name_size) < 0) in save_inst()
2132 if (self->write_func(self, "\n", 1) < 0) in save_inst()
2135 else if (self->write_func(self, &obj, 1) < 0) { in save_inst()
2172 if (self->write_func(self, &build, 1) < 0) in save_inst()
2299 if (self->write_func(self, c_str, n) >= 0) in save_global()
2305 if (self->write_func(self, &global, 1) < 0) in save_global()
2308 if (self->write_func(self, module_str, module_size) < 0) in save_global()
2311 if (self->write_func(self, "\n", 1) < 0) in save_global()
2314 if (self->write_func(self, name_str, name_size) < 0) in save_global()
2317 if (self->write_func(self, "\n", 1) < 0) in save_global()
2358 if (self->write_func(self, &persid, 1) < 0) in save_pers()
2364 if (self->write_func(self, in save_pers()
2370 if (self->write_func(self, "\n", 1) < 0) in save_pers()
2377 if (self->write_func(self, &binpersid, 1) < 0) in save_pers()
2536 if (self->write_func(self, &newobj, 1) < 0) in save_reduce()
2543 self->write_func(self, &reduce, 1) < 0) in save_reduce()
2559 if (self->write_func(self, &pop_op, 1) < 0 || in save_reduce()
2588 self->write_func(self, &build, 1) < 0) in save_reduce()
2857 if (self->write_func(self, bytes, 2) < 0) in dump()
2864 if (self->write_func(self, &stop, 1) < 0) in dump()
2867 if (self->write_func(self, NULL, 0) < 0) in dump()
3104 self->write_func = write_file; in newPicklerobject()
3107 self->write_func = write_cStringIO; in newPicklerobject()
3110 self->write_func = write_none; in newPicklerobject()
3113 self->write_func = write_other; in newPicklerobject()