physfs.h
changeset 747 3da194b12f43
parent 724 59b7f0c2c5c0
child 751 74dc021744de
equal deleted inserted replaced
746:88780f7156d3 747:3da194b12f43
  1855  *
  1855  *
  1856  * You create one of these structures for use with PHYSFS_setAllocator.
  1856  * You create one of these structures for use with PHYSFS_setAllocator.
  1857  *  Allocators are assumed to be reentrant by the caller; please mutex
  1857  *  Allocators are assumed to be reentrant by the caller; please mutex
  1858  *  accordingly.
  1858  *  accordingly.
  1859  *
  1859  *
       
  1860  * Allocations are always discussed in 64-bits, for future expansion...we're
       
  1861  *  on the cusp of a 64-bit transition, and we'll probably be allocating 6
       
  1862  *  gigabytes like it's nothing sooner or later, and I don't want to change
       
  1863  *  this again at that point. If you're on a 32-bit platform and have to
       
  1864  *  downcast, it's okay to return NULL if the allocation is greater than
       
  1865  *  4 gigabytes, since you'd have to do so anyhow.
       
  1866  *
  1860  * \sa PHYSFS_setAllocator
  1867  * \sa PHYSFS_setAllocator
  1861  */
  1868  */
  1862 typedef struct
  1869 typedef struct
  1863 {
  1870 {
  1864     int (*Init)(void);
  1871     int (*Init)(void);
  1865     void (*Deinit)(void);
  1872     void (*Deinit)(void);
  1866     void *(*Malloc)(size_t);
  1873     void *(*Malloc)(PHYSFS_uint64);
  1867     void *(*Realloc)(void *, size_t);
  1874     void *(*Realloc)(void *, PHYSFS_uint64);
  1868     void (*Free)(void *);
  1875     void (*Free)(void *);
  1869 } PHYSFS_Allocator;
  1876 } PHYSFS_Allocator;
  1870 
  1877 
  1871 
  1878 
  1872 /**
  1879 /**