Home | History | Annotate | Download | only in Modules

Lines Matching defs:c_str

813     char c_str[30];

850 c_str[0] = PUT;
851 PyOS_snprintf(c_str + 1, sizeof(c_str) - 1,
853 len = strlen(c_str);
863 c_str[0] = LONG_BINPUT;
864 c_str[1] = (int)(p & 0xff);
865 c_str[2] = (int)((p >> 8) & 0xff);
866 c_str[3] = (int)((p >> 16) & 0xff);
867 c_str[4] = (int)((p >> 24) & 0xff);
871 c_str[0] = BINPUT;
872 c_str[1] = p;
877 if (self->write_func(self, c_str, len) < 0)
1026 char c_str[32];
1039 c_str[0] = INT;
1040 PyOS_snprintf(c_str + 1, sizeof(c_str) - 1, "%ld\n", l);
1041 if (self->write_func(self, c_str, strlen(c_str)) < 0)
1046 c_str[1] = (int)( l & 0xff);
1047 c_str[2] = (int)((l >> 8) & 0xff);
1048 c_str[3] = (int)((l >> 16) & 0xff);
1049 c_str[4] = (int)((l >> 24) & 0xff);
1051 if ((c_str[4] == 0) && (c_str[3] == 0)) {
1052 if (c_str[2] == 0) {
1053 c_str[0] = BININT1;
1057 c_str[0] = BININT2;
1062 c_str[0] = BININT;
1066 if (self->write_func(self, c_str, len) < 0)
1088 char c_str[5];
1094 c_str[0] = LONG1;
1095 c_str[1] = 0;
1096 i = self->write_func(self, c_str, 2);
1140 c_str[0] = LONG1;
1141 c_str[1] = (char)nbytes;
1145 c_str[0] = LONG4;
1148 c_str[i] = (char)(size & 0xff);
1153 i = self->write_func(self, c_str, size);
1266 char c_str[5];
1269 c_str[0] = SHORT_BINSTRING;
1270 c_str[1] = size;
1274 c_str[0] = BINSTRING;
1276 c_str[i] = (int)(size >> ((i - 1) * 8));
1282 if (self->write_func(self, c_str, len) < 0)
1434 char c_str[5];
1444 c_str[0] = BINUNICODE;
1446 c_str[i] = (int)(size >> ((i - 1) * 8));
1449 if (self->write_func(self, c_str, len) < 0)
1523 char c_str[2];
1526 c_str[0] = EMPTY_TUPLE;
1530 c_str[0] = MARK;
1531 c_str[1] = TUPLE;
1534 if (self->write_func(self, c_str, len) >= 0)
2240 char c_str[5];
2266 c_str[0] = EXT1;
2267 c_str[1] = (char)code;
2271 c_str[0] = EXT2;
2272 c_str[1] = (char)(code & 0xff);
2273 c_str[2] = (char)((code >> 8) & 0xff);
2277 c_str[0] = EXT4;
2278 c_str[1] = (char)(code & 0xff);
2279 c_str[2] = (char)((code >> 8) & 0xff);
2280 c_str[3] = (char)((code >> 16) & 0xff);
2281 c_str[4] = (char)((code >> 24) & 0xff);
2285 if (self->write_func(self, c_str, n) >= 0)