{"payload":{"allShortcutsEnabled":false,"fileTree":{"extras":{"items":[{"name":"PhysFS.NET","path":"extras/PhysFS.NET","contentType":"directory"},{"name":"physfs_rb","path":"extras/physfs_rb","contentType":"directory"},{"name":"Makefile.am","path":"extras/Makefile.am","contentType":"file"},{"name":"abs-file.h","path":"extras/abs-file.h","contentType":"file"},{"name":"globbing.c","path":"extras/globbing.c","contentType":"file"},{"name":"globbing.h","path":"extras/globbing.h","contentType":"file"},{"name":"ignorecase.c","path":"extras/ignorecase.c","contentType":"file"},{"name":"ignorecase.h","path":"extras/ignorecase.h","contentType":"file"},{"name":"physfshttpd.c","path":"extras/physfshttpd.c","contentType":"file"},{"name":"physfsrwops.c","path":"extras/physfsrwops.c","contentType":"file"},{"name":"physfsrwops.h","path":"extras/physfsrwops.h","contentType":"file"},{"name":"selfextract.c","path":"extras/selfextract.c","contentType":"file"}],"totalCount":12},"":{"items":[{"name":"PBProjects","path":"PBProjects","contentType":"directory"},{"name":"archivers","path":"archivers","contentType":"directory"},{"name":"debian","path":"debian","contentType":"directory"},{"name":"extras","path":"extras","contentType":"directory"},{"name":"platform","path":"platform","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":"zlib121","path":"zlib121","contentType":"directory"},{"name":"CHANGELOG","path":"CHANGELOG","contentType":"file"},{"name":"CREDITS","path":"CREDITS","contentType":"file"},{"name":"CWProjects.sitx","path":"CWProjects.sitx","contentType":"file"},{"name":"Doxyfile","path":"Doxyfile","contentType":"file"},{"name":"INSTALL","path":"INSTALL","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile.am.newautomake","path":"Makefile.am.newautomake","contentType":"file"},{"name":"Makefile.am.oldautomake","path":"Makefile.am.oldautomake","contentType":"file"},{"name":"TODO","path":"TODO","contentType":"file"},{"name":"acconfig.h","path":"acconfig.h","contentType":"file"},{"name":"bootstrap","path":"bootstrap","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"makeos2.cmd","path":"makeos2.cmd","contentType":"file"},{"name":"physfs.c","path":"physfs.c","contentType":"file"},{"name":"physfs.dsp","path":"physfs.dsp","contentType":"file"},{"name":"physfs.h","path":"physfs.h","contentType":"file"},{"name":"physfs.spec.in","path":"physfs.spec.in","contentType":"file"},{"name":"physfs.vcproj","path":"physfs.vcproj","contentType":"file"},{"name":"physfs_byteorder.c","path":"physfs_byteorder.c","contentType":"file"},{"name":"physfs_internal.h","path":"physfs_internal.h","contentType":"file"},{"name":"physfs_static.dsp","path":"physfs_static.dsp","contentType":"file"},{"name":"test_physfs.dsp","path":"test_physfs.dsp","contentType":"file"},{"name":"test_physfs.vcproj","path":"test_physfs.vcproj","contentType":"file"},{"name":"zlib_license_change.txt","path":"zlib_license_change.txt","contentType":"file"}],"totalCount":31}},"fileTreeProcessingTime":3.622629,"foldersToFetch":[],"repo":{"id":381228368,"defaultBranch":"main","name":"physfs","ownerLogin":"icculus","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-06-29T03:33:29.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/673562?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"8641e4e7efb644a994315f538b215f32f97ecc0c","listCacheKey":"v0:1664568821.563049","canEdit":false,"refType":"tree","currentOid":"8641e4e7efb644a994315f538b215f32f97ecc0c"},"path":"extras/physfsrwops.h","currentUser":null,"blob":{"rawLines":["/*"," * This code provides a glue layer between PhysicsFS and Simple Directmedia"," * Layer's (SDL) RWops i/o abstraction."," *"," * License: this code is public domain. I make no warranty that it is useful,"," * correct, harmless, or environmentally safe."," *"," * This particular file may be used however you like, including copying it"," * verbatim into a closed-source project, exploiting it commercially, and"," * removing any trace of my name from the source (although I hope you won't"," * do that). I welcome enhancements and corrections to this file, but I do"," * not require you to send me patches if you make changes. This code has"," * NO WARRANTY."," *"," * Unless otherwise stated, the rest of PhysicsFS falls under the zlib license."," * Please see LICENSE in the root of the source tree."," *"," * SDL falls under the LGPL license. You can get SDL at http://www.libsdl.org/"," *"," * This file was written by Ryan C. Gordon. (icculus@clutteredmind.org)."," */","","#ifndef _INCLUDE_PHYSFSRWOPS_H_","#define _INCLUDE_PHYSFSRWOPS_H_","","#include \"physfs.h\"","#include \"SDL.h\"","","#ifdef __cplusplus","extern \"C\" {","#endif","","/**"," * Open a platform-independent filename for reading, and make it accessible"," * via an SDL_RWops structure. The file will be closed in PhysicsFS when the"," * RWops is closed. PhysicsFS should be configured to your liking before"," * opening files through this method."," *"," * @param filename File to open in platform-independent notation."," * @return A valid SDL_RWops structure on success, NULL on error. Specifics"," * of the error can be gleaned from PHYSFS_getLastError()."," */","__EXPORT__ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname);","","/**"," * Open a platform-independent filename for writing, and make it accessible"," * via an SDL_RWops structure. The file will be closed in PhysicsFS when the"," * RWops is closed. PhysicsFS should be configured to your liking before"," * opening files through this method."," *"," * @param filename File to open in platform-independent notation."," * @return A valid SDL_RWops structure on success, NULL on error. Specifics"," * of the error can be gleaned from PHYSFS_getLastError()."," */","__EXPORT__ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname);","","/**"," * Open a platform-independent filename for appending, and make it accessible"," * via an SDL_RWops structure. The file will be closed in PhysicsFS when the"," * RWops is closed. PhysicsFS should be configured to your liking before"," * opening files through this method."," *"," * @param filename File to open in platform-independent notation."," * @return A valid SDL_RWops structure on success, NULL on error. Specifics"," * of the error can be gleaned from PHYSFS_getLastError()."," */","__EXPORT__ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname);","","/**"," * Make a SDL_RWops from an existing PhysicsFS file handle. You should"," * dispose of any references to the handle after successful creation of"," * the RWops. The actual PhysicsFS handle will be destroyed when the"," * RWops is closed."," *"," * @param handle a valid PhysicsFS file handle."," * @return A valid SDL_RWops structure on success, NULL on error. Specifics"," * of the error can be gleaned from PHYSFS_getLastError()."," */","__EXPORT__ SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_File *handle);","","#ifdef __cplusplus","}","#endif","","#endif /* include-once blocker */","","/* end of physfsrwops.h ... */"],"stylingDirectives":[[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":75,"cssClass":"pl-c"}],[{"start":0,"end":40,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":47,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":76,"cssClass":"pl-c"}],[{"start":0,"end":75,"cssClass":"pl-c"}],[{"start":0,"end":73,"cssClass":"pl-c"}],[{"start":0,"end":16,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":79,"cssClass":"pl-c"}],[{"start":0,"end":54,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":78,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":73,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[],[{"start":0,"end":7,"cssClass":"pl-k"},{"start":8,"end":31,"cssClass":"pl-s1"}],[{"start":0,"end":7,"cssClass":"pl-k"},{"start":8,"end":31,"cssClass":"pl-s1"}],[],[{"start":0,"end":8,"cssClass":"pl-k"},{"start":9,"end":19,"cssClass":"pl-s"}],[{"start":0,"end":8,"cssClass":"pl-k"},{"start":9,"end":16,"cssClass":"pl-s"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":18,"cssClass":"pl-s1"}],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":10,"cssClass":"pl-s"}],[{"start":0,"end":6,"cssClass":"pl-k"}],[],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":75,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":73,"cssClass":"pl-c"}],[{"start":0,"end":38,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":67,"cssClass":"pl-c"}],[{"start":0,"end":76,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":10,"cssClass":"pl-smi"},{"start":11,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":22,"end":42,"cssClass":"pl-en"},{"start":43,"end":48,"cssClass":"pl-k"},{"start":49,"end":53,"cssClass":"pl-smi"},{"start":54,"end":55,"cssClass":"pl-c1"},{"start":55,"end":60,"cssClass":"pl-s1"}],[],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":75,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":73,"cssClass":"pl-c"}],[{"start":0,"end":38,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":67,"cssClass":"pl-c"}],[{"start":0,"end":76,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":10,"cssClass":"pl-smi"},{"start":11,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":22,"end":43,"cssClass":"pl-en"},{"start":44,"end":49,"cssClass":"pl-k"},{"start":50,"end":54,"cssClass":"pl-smi"},{"start":55,"end":56,"cssClass":"pl-c1"},{"start":56,"end":61,"cssClass":"pl-s1"}],[],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":77,"cssClass":"pl-c"}],[{"start":0,"end":73,"cssClass":"pl-c"}],[{"start":0,"end":38,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":67,"cssClass":"pl-c"}],[{"start":0,"end":76,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":10,"cssClass":"pl-smi"},{"start":11,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":22,"end":44,"cssClass":"pl-en"},{"start":45,"end":50,"cssClass":"pl-k"},{"start":51,"end":55,"cssClass":"pl-smi"},{"start":56,"end":57,"cssClass":"pl-c1"},{"start":57,"end":62,"cssClass":"pl-s1"}],[],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":70,"cssClass":"pl-c"}],[{"start":0,"end":72,"cssClass":"pl-c"}],[{"start":0,"end":69,"cssClass":"pl-c"}],[{"start":0,"end":20,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":49,"cssClass":"pl-c"}],[{"start":0,"end":76,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[{"start":0,"end":10,"cssClass":"pl-smi"},{"start":11,"end":20,"cssClass":"pl-s1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":22,"end":43,"cssClass":"pl-en"},{"start":44,"end":55,"cssClass":"pl-smi"},{"start":56,"end":57,"cssClass":"pl-c1"},{"start":57,"end":63,"cssClass":"pl-s1"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":7,"end":18,"cssClass":"pl-s1"},{"start":18,"end":18,"cssClass":"pl-k"}],[],[{"start":0,"end":6,"cssClass":"pl-k"}],[],[{"start":0,"end":6,"cssClass":"pl-k"},{"start":6,"end":33,"cssClass":"pl-c"}],[],[{"start":0,"end":30,"cssClass":"pl-c"}],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/icculus/physfs/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"physfsrwops.h","displayUrl":"https://github.com/icculus/physfs/blame/8641e4e7efb644a994315f538b215f32f97ecc0c/extras/physfsrwops.h?raw=true","headerInfo":{"blobSize":"3.29 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"2de7033","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Ficculus%2Fphysfs%2Fblame%2F8641e4e7efb644a994315f538b215f32f97ecc0c%2Fextras%2Fphysfsrwops.h","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"88","truncatedSloc":"77"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C","languageID":41,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/icculus/physfs/blame/8641e4e7efb644a994315f538b215f32f97ecc0c/extras/physfsrwops.h","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/icculus/physfs/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/icculus/physfs/raw/8641e4e7efb644a994315f538b215f32f97ecc0c/extras/physfsrwops.h","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":true,"not_analyzed":false,"symbols":[{"name":"_INCLUDE_PHYSFSRWOPS_H_","kind":"macro","ident_start":988,"ident_end":1011,"extent_start":980,"extent_end":1013,"fully_qualified_name":"_INCLUDE_PHYSFSRWOPS_H_","ident_utf16":{"start":{"line_number":23,"utf16_col":8},"end":{"line_number":23,"utf16_col":31}},"extent_utf16":{"start":{"line_number":23,"utf16_col":0},"end":{"line_number":25,"utf16_col":0}}},{"name":"PHYSFSRWOPS_openRead","kind":"function","ident_start":1605,"ident_end":1625,"extent_start":1605,"extent_end":1644,"fully_qualified_name":"PHYSFSRWOPS_openRead","ident_utf16":{"start":{"line_number":42,"utf16_col":22},"end":{"line_number":42,"utf16_col":42}},"extent_utf16":{"start":{"line_number":42,"utf16_col":22},"end":{"line_number":42,"utf16_col":61}}},{"name":"PHYSFSRWOPS_openWrite","kind":"function","ident_start":2161,"ident_end":2182,"extent_start":2161,"extent_end":2201,"fully_qualified_name":"PHYSFSRWOPS_openWrite","ident_utf16":{"start":{"line_number":54,"utf16_col":22},"end":{"line_number":54,"utf16_col":43}},"extent_utf16":{"start":{"line_number":54,"utf16_col":22},"end":{"line_number":54,"utf16_col":62}}},{"name":"PHYSFSRWOPS_openAppend","kind":"function","ident_start":2720,"ident_end":2742,"extent_start":2720,"extent_end":2761,"fully_qualified_name":"PHYSFSRWOPS_openAppend","ident_utf16":{"start":{"line_number":66,"utf16_col":22},"end":{"line_number":66,"utf16_col":44}},"extent_utf16":{"start":{"line_number":66,"utf16_col":22},"end":{"line_number":66,"utf16_col":63}}},{"name":"PHYSFSRWOPS_makeRWops","kind":"function","ident_start":3228,"ident_end":3249,"extent_start":3228,"extent_end":3270,"fully_qualified_name":"PHYSFSRWOPS_makeRWops","ident_utf16":{"start":{"line_number":78,"utf16_col":22},"end":{"line_number":78,"utf16_col":43}},"extent_utf16":{"start":{"line_number":78,"utf16_col":22},"end":{"line_number":78,"utf16_col":64}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":11,"oldEnd":11,"commitOid":"dd070f93307cf7a9d38a3bd1f99f339121f688b2","reblamePath":null},"12":{"start":12,"oldStart":12,"end":13,"oldEnd":13,"commitOid":"025aef8a15a4aed8ec050815d46f22d5ff4da7a7","reblamePath":"extras/physfsrwops.h"},"14":{"start":14,"oldStart":13,"end":14,"oldEnd":13,"commitOid":"dd070f93307cf7a9d38a3bd1f99f339121f688b2","reblamePath":null},"15":{"start":15,"oldStart":15,"end":16,"oldEnd":16,"commitOid":"025aef8a15a4aed8ec050815d46f22d5ff4da7a7","reblamePath":"extras/physfsrwops.h"},"17":{"start":17,"oldStart":16,"end":17,"oldEnd":16,"commitOid":"dd070f93307cf7a9d38a3bd1f99f339121f688b2","reblamePath":null},"18":{"start":18,"oldStart":18,"end":18,"oldEnd":18,"commitOid":"025aef8a15a4aed8ec050815d46f22d5ff4da7a7","reblamePath":"extras/physfsrwops.h"},"19":{"start":19,"oldStart":18,"end":78,"oldEnd":83,"commitOid":"dd070f93307cf7a9d38a3bd1f99f339121f688b2","reblamePath":null},"79":{"start":79,"oldStart":79,"end":79,"oldEnd":79,"commitOid":"8641e4e7efb644a994315f538b215f32f97ecc0c","reblamePath":"extras/physfsrwops.h"},"80":{"start":80,"oldStart":85,"end":88,"oldEnd":93,"commitOid":"dd070f93307cf7a9d38a3bd1f99f339121f688b2","reblamePath":null}},"commits":{"dd070f93307cf7a9d38a3bd1f99f339121f688b2":{"oid":"dd070f93307cf7a9d38a3bd1f99f339121f688b2","message":"Initial add.","shortMessageHtmlLink":"Initial add.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/673562?s=80&v=4","committerName":"Ryan C. Gordon","committerEmail":"icculus@icculus.org","committedDate":"2002-03-16T03:51:09.000Z","firstParentOid":"cd58c9e52387aa5bf76bac9aa7f5a3d99675130e"},"025aef8a15a4aed8ec050815d46f22d5ff4da7a7":{"oid":"025aef8a15a4aed8ec050815d46f22d5ff4da7a7","message":"Switched to zlib license.","shortMessageHtmlLink":"Switched to zlib license.","authorAvatarUrl":"https://avatars.githubusercontent.com/u/673562?s=80&v=4","committerName":"Ryan C. Gordon","committerEmail":"icculus@icculus.org","committedDate":"2003-07-20T20:57:55.000Z","firstParentOid":"33be461bcbab688a9fca387eb14676b124d81fe7"},"8641e4e7efb644a994315f538b215f32f97ecc0c":{"oid":"8641e4e7efb644a994315f538b215f32f97ecc0c","message":"Changed PHYSFS_file to PHYSFS_File to match rest of API's naming\nconvention. This won't break binary compat (function signatures are\nextern \"C\" so name mangling doesn't apply), and I've placed a typedef\nfor the old name to support legacy source code.","shortMessageHtmlLink":"Changed PHYSFS_file to PHYSFS_File to match rest of API's naming","authorAvatarUrl":"https://avatars.githubusercontent.com/u/673562?s=80&v=4","committerName":"Ryan C. Gordon","committerEmail":"icculus@icculus.org","committedDate":"2004-09-26T13:17:54.000Z","firstParentOid":"221a2303be486bbdcd677742ea4cce7dd7e3c242"}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/icculus/physfs/branches":{"post":"I81IgUtFEO474CUoaLe-m9XHPcsFGvYMPAx1Q8XI2LsLy6f8utWdOp5fraxpAX8v68cnNk2RgWLWVsbQw42neA"},"/repos/preferences":{"post":"hk7i6D7Bb3vQs3oUemWbAxFeCqF050SDL8_vhUCVREoOYDYVdTEWT9Yt6PSLYATVUtbE_No39kJlI9SBM33xeg"}}},"title":"Blaming physfs/extras/physfsrwops.h at 8641e4e7efb644a994315f538b215f32f97ecc0c ยท icculus/physfs"}