XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
916 B

  1. typedef struct _xc_mem_t xc_mem_t;
  2. typedef struct _xc_block_t xc_block_t;
  3. typedef unsigned int xc_memsize_t;
  4. void *xc_mem_malloc(xc_mem_t *mem, xc_memsize_t size);
  5. int xc_mem_free(xc_mem_t *mem, const void *p);
  6. void *xc_mem_calloc(xc_mem_t *mem, xc_memsize_t memb, xc_memsize_t size);
  7. void *xc_mem_realloc(xc_mem_t *mem, const void *p, xc_memsize_t size);
  8. char *xc_mem_strndup(xc_mem_t *mem, const char *str, xc_memsize_t len);
  9. char *xc_mem_strdup(xc_mem_t *mem, const char *str);
  10. const xc_block_t *xc_mem_freeblock_first(xc_mem_t *mem);
  11. const xc_block_t *xc_mem_freeblock_next(const xc_block_t *block);
  12. xc_memsize_t xc_mem_block_size(const xc_block_t *block);
  13. xc_memsize_t xc_mem_block_offset(const xc_mem_t *mem, const xc_block_t *block);
  14. xc_memsize_t xc_mem_avail(xc_mem_t *mem);
  15. xc_memsize_t xc_mem_size(xc_mem_t *mem);
  16. xc_mem_t *xc_mem_init(void *ptr, xc_memsize_t size);
  17. void xc_mem_destroy(xc_mem_t *mem);