Lines Matching defs:bytes
1056 emit_pair(PyObject **bytes, int *offset, int a, int b)
1058 Py_ssize_t len = PyBytes_GET_SIZE(*bytes);
1060 if (_PyBytes_Resize(bytes, len * 2) < 0)
1063 unsigned char *lnotab = (unsigned char *) PyBytes_AS_STRING(*bytes);
1072 emit_delta(PyObject **bytes, int bdelta, int ldelta, int *offset)
1075 if (!emit_pair(bytes, offset, 255, 0)) {
1081 if (!emit_pair(bytes, offset, bdelta, 127)) {
1088 if (!emit_pair(bytes, offset, bdelta, -128)) {
1094 return emit_pair(bytes, offset, bdelta, ldelta);
1101 PyObject *bytes;
1105 bytes = PyBytes_FromStringAndSize(NULL, 64);
1106 if (bytes == NULL) {
1114 if (!emit_delta(&bytes, bdelta, ldelta, &table_offset)) {
1115 Py_DECREF(bytes);
1122 _PyBytes_Resize(&bytes, table_offset);
1123 return bytes;
2089 * Avoid BytesWarning from comparing bytes with strings. */