Lines Matching refs:bytes
27 int bytes = PHPDBG_G(input_buflen), len = 0; in ZEND_EXTERN_MODULE_GLOBALS() local
30 memcpy(buf, PHPDBG_G(input_buffer), bytes); in ZEND_EXTERN_MODULE_GLOBALS()
37 if (bytes <= 0) { in ZEND_EXTERN_MODULE_GLOBALS()
41 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS()
43 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS()
44 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS()
51 PHPDBG_G(input_buflen) = len + bytes - 1 - i; in ZEND_EXTERN_MODULE_GLOBALS()
62 len += bytes; in ZEND_EXTERN_MODULE_GLOBALS()
63 …} while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len… in ZEND_EXTERN_MODULE_GLOBALS()
65 if (bytes <= 0) { in ZEND_EXTERN_MODULE_GLOBALS()
70 return bytes; in ZEND_EXTERN_MODULE_GLOBALS()
84 int count = 0, bytes = 0; in phpdbg_output_pager() local
92 bytes += write(fd, ptr + bytes, (p - ptr) - bytes); in phpdbg_output_pager()
105 if (bytes && count % PHPDBG_G(lines) != 0) { in phpdbg_output_pager()
106 bytes += write(fd, ptr + bytes, len - bytes); in phpdbg_output_pager()
107 } else if (!bytes) { in phpdbg_output_pager()
108 bytes += write(fd, ptr, len); in phpdbg_output_pager()
110 return bytes; in phpdbg_output_pager()