equal
deleted
inserted
replaced
770 * @param objSize size in bytes of objects being read from (handle). |
770 * @param objSize size in bytes of objects being read from (handle). |
771 * @param objCount number of (objSize) objects to read from (handle). |
771 * @param objCount number of (objSize) objects to read from (handle). |
772 * @return number of objects written. PHYSFS_getLastError() can shed light on |
772 * @return number of objects written. PHYSFS_getLastError() can shed light on |
773 * the reason this might be < (objCount). -1 if complete failure. |
773 * the reason this might be < (objCount). -1 if complete failure. |
774 */ |
774 */ |
775 __EXPORT__ int PHYSFS_write(PHYSFS_file *handle, void *buffer, |
775 __EXPORT__ int PHYSFS_write(PHYSFS_file *handle, const void *buffer, |
776 unsigned int objSize, unsigned int objCount); |
776 unsigned int objSize, unsigned int objCount); |
777 |
777 |
778 |
778 |
779 /** |
779 /** |
780 * Determine if the end of file has been reached in a PhysicsFS filehandle. |
780 * Determine if the end of file has been reached in a PhysicsFS filehandle. |
809 |
809 |
810 |
810 |
811 /** |
811 /** |
812 * Get total length of a file in bytes. Note that if the file size can't |
812 * Get total length of a file in bytes. Note that if the file size can't |
813 * be determined (since the archive is "streamed" or whatnot) than this |
813 * be determined (since the archive is "streamed" or whatnot) than this |
814 * with report (-1). Also note that if another process/thread is writing |
814 * will report (-1). Also note that if another process/thread is writing |
815 * to this file at the same time, then the information this function |
815 * to this file at the same time, then the information this function |
816 * supplies could be incorrect before you get it. Use with caution, or |
816 * supplies could be incorrect before you get it. Use with caution, or |
817 * better yet, don't use at all. |
817 * better yet, don't use at all. |
818 * |
818 * |
819 * @param handle handle returned from PHYSFS_open*(). |
819 * @param handle handle returned from PHYSFS_open*(). |