Results 1 - 11 of 11 results out of about 6838 pages. (3.82 seconds)
- SDL_RWread . . . 3 matches
- ...!= NULL) {
extern Uint8 buf[256];
SDL_RWread(rw, buf, sizeof (buf), 1);
SDL_RWclose(rw);
}
}}}
Read a complete file in memory (assuming size can be detected) (from [[...
- SDL_RWops . . . 3 matches
- ...(io, name, sizeof (name), 1) > 0) {
printf("Hello, %s!\n", name);
}
SDL_RWclose(io);
}
}}}
== Remarks ==
SDL_RWops is an abstraction over I/O. It provides interf...
- SDL_RWwrite . . . 2 matches
- ...string\n");
} else {
printf("Wrote %d 1-byte blocks\n", len);
}
SDL_RWclose(rw);
}
}}}
== Remarks ==
This function writes exactly '''num''' objects each of si...
- SDL_RWseek . . . 2 matches
- ...from the end of the file */
Sint64 length = SDL_RWseek(rw, 0, RW_SEEK_END);
SDL_RWclose(rw);
if (length < 0) {
printf("Could not seek inside myfile.bin\n");
...
- SDL_RWFromFP . . . 2 matches
- ...dat", "rb");
SDL_RWops *rw = SDL_RWFromFP(fp, SDL_TRUE);
/* Do things with rw... */
SDL_RWclose(rw); /* Automatically does an fclose(fp) in this case */
}}}
== Remarks ==
This fu...
- SDL_RWtell . . . 1 match
- ...from RW_SEEK_CUR, to simplify application development.
== Related Functions ==
.[[SDL_RWclose]]
.[[SDL_RWFromConstMem]]
.[[SDL_RWFromFile]]
.[[SDL_RWFromFP]]
.[[SDL_RWFromMe...
- SDL_RWFromMem . . . 1 match
- ...onstMem]]() with a read-only buffer of memory instead.
== Related Functions ==
.[[SDL_RWclose]]
.[[SDL_RWFromConstMem]]
.[[SDL_RWFromFile]]
.[[SDL_RWFromFP]]
.[[SDL_RWFromMe...
- SDL_RWFromFile . . . 1 match
- ... will close the file handle SDL is holding internally.
== Related Functions ==
.[[SDL_RWclose]]
.[[SDL_RWFromConstMem]]
.[[SDL_RWFromFP]]
.[[SDL_RWFromMem]]
.[[SDL_RWread]]
...
- SDL_RWFromConstMem . . . 1 match
- ...WFromMem]]() with a writable buffer of memory instead.
== Related Functions ==
.[[SDL_RWclose]]
.[[SDL_RWFromConstMem]]
.[[SDL_RWFromFile]]
.[[SDL_RWFromFP]]
.[[SDL_RWFromMe...
- CategoryIO . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= File I/O Abstraction =
'''Include File(s):''' [[http://hg.libsdl.org/SDL/file/default/inclu...
- CategoryAPI . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= SDL 2.0 API by Name =
<<TableOfContents()>>
== Hints ==
<<FullSearchCached(category:Catego...
