Home | History | Annotate | Download | only in Modules

Lines Matching defs:c_str

782     char c_str[30];

820 c_str[0] = PUT;
821 PyOS_snprintf(c_str + 1, sizeof(c_str) - 1, "%d\n", p);
822 len = strlen(c_str);
832 c_str[0] = LONG_BINPUT;
833 c_str[1] = (int)(p & 0xff);
834 c_str[2] = (int)((p >> 8) & 0xff);
835 c_str[3] = (int)((p >> 16) & 0xff);
836 c_str[4] = (int)((p >> 24) & 0xff);
840 c_str[0] = BINPUT;
841 c_str[1] = p;
846 if (self->write_func(self, c_str, len) < 0)
995 char c_str[32];
1008 c_str[0] = INT;
1009 PyOS_snprintf(c_str + 1, sizeof(c_str) - 1, "%ld\n", l);
1010 if (self->write_func(self, c_str, strlen(c_str)) < 0)
1015 c_str[1] = (int)( l & 0xff);
1016 c_str[2] = (int)((l >> 8) & 0xff);
1017 c_str[3] = (int)((l >> 16) & 0xff);
1018 c_str[4] = (int)((l >> 24) & 0xff);
1020 if ((c_str[4] == 0) && (c_str[3] == 0)) {
1021 if (c_str[2] == 0) {
1022 c_str[0] = BININT1;
1026 c_str[0] = BININT2;
1031 c_str[0] = BININT;
1035 if (self->write_func(self, c_str, len) < 0)
1057 char c_str[5];
1063 c_str[0] = LONG1;
1064 c_str[1] = 0;
1065 i = self->write_func(self, c_str, 2);
1109 c_str[0] = LONG1;
1110 c_str[1] = (char)nbytes;
1114 c_str[0] = LONG4;
1117 c_str[i] = (char)(size & 0xff);
1122 i = self->write_func(self, c_str, size);
1235 char c_str[5];
1238 c_str[0] = SHORT_BINSTRING;
1239 c_str[1] = size;
1243 c_str[0] = BINSTRING;
1245 c_str[i] = (int)(size >> ((i - 1) * 8));
1251 if (self->write_func(self, c_str, len) < 0)
1403 char c_str[5];
1413 c_str[0] = BINUNICODE;
1415 c_str[i] = (int)(size >> ((i - 1) * 8));
1418 if (self->write_func(self, c_str, len) < 0)
1492 char c_str[2];
1495 c_str[0] = EMPTY_TUPLE;
1499 c_str[0] = MARK;
1500 c_str[1] = TUPLE;
1503 if (self->write_func(self, c_str, len) >= 0)
2209 char c_str[5];
2235 c_str[0] = EXT1;
2236 c_str[1] = (char)code;
2240 c_str[0] = EXT2;
2241 c_str[1] = (char)(code & 0xff);
2242 c_str[2] = (char)((code >> 8) & 0xff);
2246 c_str[0] = EXT4;
2247 c_str[1] = (char)(code & 0xff);
2248 c_str[2] = (char)((code >> 8) & 0xff);
2249 c_str[3] = (char)((code >> 16) & 0xff);
2250 c_str[4] = (char)((code >> 24) & 0xff);
2254 if (self->write_func(self, c_str, n) >= 0)