Home | History | Annotate | Download | only in Modules

Lines Matching defs:c_str

811     char c_str[30];
848 c_str[0] = PUT;
849 PyOS_snprintf(c_str + 1, sizeof(c_str) - 1,
851 len = strlen(c_str);
861 c_str[0] = LONG_BINPUT;
862 c_str[1] = (int)(p & 0xff);
863 c_str[2] = (int)((p >> 8) & 0xff);
864 c_str[3] = (int)((p >> 16) & 0xff);
865 c_str[4] = (int)((p >> 24) & 0xff);
869 c_str[0] = BINPUT;
870 c_str[1] = p;
875 if (self->write_func(self, c_str, len) < 0)
1024 char c_str[32];
1037 c_str[0] = INT;
1038 PyOS_snprintf(c_str + 1, sizeof(c_str) - 1, "%ld\n", l);
1039 if (self->write_func(self, c_str, strlen(c_str)) < 0)
1044 c_str[1] = (int)( l & 0xff);
1045 c_str[2] = (int)((l >> 8) & 0xff);
1046 c_str[3] = (int)((l >> 16) & 0xff);
1047 c_str[4] = (int)((l >> 24) & 0xff);
1049 if ((c_str[4] == 0) && (c_str[3] == 0)) {
1050 if (c_str[2] == 0) {
1051 c_str[0] = BININT1;
1055 c_str[0] = BININT2;
1060 c_str[0] = BININT;
1064 if (self->write_func(self, c_str, len) < 0)
1086 char c_str[5];
1092 c_str[0] = LONG1;
1093 c_str[1] = 0;
1094 i = self->write_func(self, c_str, 2);
1138 c_str[0] = LONG1;
1139 c_str[1] = (char)nbytes;
1143 c_str[0] = LONG4;
1146 c_str[i] = (char)(size & 0xff);
1151 i = self->write_func(self, c_str, size);
1264 char c_str[5];
1267 c_str[0] = SHORT_BINSTRING;
1268 c_str[1] = size;
1272 c_str[0] = BINSTRING;
1274 c_str[i] = (int)(size >> ((i - 1) * 8));
1280 if (self->write_func(self, c_str, len) < 0)
1432 char c_str[5];
1442 c_str[0] = BINUNICODE;
1444 c_str[i] = (int)(size >> ((i - 1) * 8));
1447 if (self->write_func(self, c_str, len) < 0)
1521 char c_str[2];
1524 c_str[0] = EMPTY_TUPLE;
1528 c_str[0] = MARK;
1529 c_str[1] = TUPLE;
1532 if (self->write_func(self, c_str, len) >= 0)
2238 char c_str[5];
2264 c_str[0] = EXT1;
2265 c_str[1] = (char)code;
2269 c_str[0] = EXT2;
2270 c_str[1] = (char)(code & 0xff);
2271 c_str[2] = (char)((code >> 8) & 0xff);
2275 c_str[0] = EXT4;
2276 c_str[1] = (char)(code & 0xff);
2277 c_str[2] = (char)((code >> 8) & 0xff);
2278 c_str[3] = (char)((code >> 16) & 0xff);
2279 c_str[4] = (char)((code >> 24) & 0xff);
2283 if (self->write_func(self, c_str, n) >= 0)