aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


client/runtime/browser_asset_cache.h (567B)


      1 #ifndef BROWSER_ASSET_CACHE_H
      2 #define BROWSER_ASSET_CACHE_H
      3 
      4 #include <sys/types.h>
      5 
      6 /* Immutable FetchFS files only; callers hold the guest file lock. Inodes remain
      7  * alive for the browser session, including when their descriptors are closed. */
      8 ssize_t browser_asset_read_locked(int descriptor, ino_t inode, off_t file_size,
      9                                  void *buffer, size_t length);
     10 
     11 /* Takes ownership of one complete chunk; safe alongside guest reads. */
     12 void browser_asset_cache_store(ino_t inode, off_t offset, unsigned char *bytes, size_t size);
     13 
     14 #endif