rply-io /

Filename Size Date modified Message
etc
manual
0 B
490 B
1.1 KB
1.3 KB
56.3 KB
17.0 KB

RPly I/O

This is a fork of RPly which adds support for custom I/O routines instead of always going through standard I/O (fopen, fread) as well as CMake project files. It is fully compatible with the original RPly 1.1.1 release.

The changes are licensed under the same license as RPly and are provided by Matthäus G. Chajdas (dev@anteru.net).

Using the low-level I/O

The I/O functions are stored in a ply_io structure, along with a context and passed to the new ply_open_io and ply_create_io functions. The original ply_open and ply_close functions are merely wrappers which initialize a default I/O using the standard I/O routines.

All operations are passed through the read and write function callbacks. The read/write functions should not depend on the address of the ply_io structure. Everything required by the read/write functions must be stored in the context.

Depending on the mode only the read or the write function must be set. Setting both is not an error, but there is no mode which supports reading and writing at the same time.

For cleanup, a ply_io_close function may be specified which will be called during ply_close. This function can deallocate the context if necessary, as it is guaranteed that the context will not be used any more after the close callback has returned.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.