1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryIO.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_RWFromMem</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryIO.html">
\83t
\83@
\83C
\83\8b\93ü
\8fo
\97Í</a> - SDL_RWFromMem
\r
14 <h1>SDL_RWFromMem</h1>
\r
15 <a href="SDL_RWops.html">SDL_RWops</a>
\82Å
\8eg
\82¤
\93Ç
\8d\9e\82Æ
\8f\91\8d\9e\82Ì
\83\81\83\82\83\8a\83o
\83b
\83t
\83@
\82ð
\8f\80\94õ
\82·
\82é
\r
17 <code>SDL_RWops* SDL_RWFromMem(void* mem, int size)</code>
\r
19 <table border="1" summary="SDL_RWFromMem">
\r
20 <tr><td>mem</td><td><a href="SDL_RWops.html">SDL_RWops</a>
\82É
\90Ý
\92è
\82·
\82é
\83o
\83b
\83t
\83@
\82Ö
\82Ì
\83|
\83C
\83\93\83^</td></tr>
\r
21 <tr><td>size</td><td>
\83o
\83b
\83t
\83@
\82Ì
\83o
\83C
\83g
\90\94</td></tr>
\r
23 <h2>
\96ß
\82è
\92l</h2>
\r
24 \90V
\82µ
\82¢<a href="SDL_RWops.html">SDL_RWops</a>
\82Ö
\82Ì
\83|
\83C
\83\93\83^
\82ð
\96ß
\82·.
\r
25 \8e¸
\94s
\82Ì
\82Æ
\82«NULL
\82ð
\96ß
\82·.
\r
26 <a href="SDL_GetError.html">SDL_GetError()</a>
\82Å
\8fÚ
\8d×
\82ð
\92m
\82é
\82±
\82Æ
\82ª
\82Å
\82«
\82é.
\r
27 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
31 char bitmap[310000];
\r
32 SDL_RWops *rw = SDL_RWFromMem(bitmap, sizeof(bitmap));
\r
33 SDL_SaveBMP_RW(screen, rw, 1); /*
\83o
\83b
\83t
\83@
\83f
\81[
\83^
\82Ì
\83f
\81[
\83^
\82ð
\95ú
\82µ
\82½
\8cã
\82ÉSDL_RWops
\82ª
\95Â
\82¶
\82é */
\r
39 \82±
\82Ì
\8aÖ
\90\94\82Í
\83T
\83C
\83Y
\82Ì
\8c\88\82Ü
\82Á
\82½
\83\81\83\82\83\8a\82ð<a href="SDL_RWops.html">SDL_RWops</a>
\82É
\90Ý
\92è
\82·
\82é.
\r
40 \83\81\83\82\83\8a\82É
\82Í
\93Ç
\8d\9e\82Æ
\8f\91\8d\9e\82Ì
\97¼
\95û
\82ª
\82Å
\82«
\82é.
\r
43 \83\81\83\82\83\8a\83o
\83b
\83t
\83@
\82Í
\83R
\83s
\81[
\82³
\82ê
\82È
\82¢.
\r
44 \83\81\83\82\83\8a\83o
\83b
\83t
\83@
\82Ö
\82Ì
\83|
\83C
\83\93\83^
\82Í
\83X
\83g
\83\8a\81[
\83\80\82ª
\95Â
\82¶
\82ç
\82ê
\82é
\82Ü
\82Å
\8eg
\97p
\89Â
\94\
\82Å
\82 \82é
\95K
\97v
\82ª
\82 \82é.
\r
45 \83X
\83g
\83\8a\81[
\83\80\82ð
\95Â
\82¶
\82Ä
\82à
\8c³
\82Ì
\83o
\83b
\83t
\83@
\82Í
\89ð
\95ú
\82³
\82ê
\82È
\82¢.
\r
48 \83\81\83\82\83\8a\83o
\83b
\83t
\83@
\82É
\8f\91\82«
\8d\9e\82Ü
\82È
\82¢
\82æ
\82¤
\82É
\82µ
\82½
\82¢
\82È
\82ç
\82Î,
\91ã
\82í
\82è
\82É<a href="SDL_RWFromConstMem.html">SDL_RWFromConstMem()</a>
\82ð
\8eg
\82Á
\82Ä
\93Ç
\8d\9e\90ê
\97p
\82Æ
\82·
\82é
\82±
\82Æ
\82ª
\82Å
\82«
\82é.
\r
50 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
51 <a href="SDL_RWFromConstMem.html">SDL_RWFromConstMem</a><br>
\r
52 <a href="SDL_RWclose.html">SDL_RWclose</a><br>
\r
53 <a href="SDL_RWread.html">SDL_RWread</a><br>
\r
54 <a href="SDL_RWseek.html">SDL_RWseek</a><br>
\r
55 <a href="SDL_RWtell.html">SDL_RWtell</a><br>
\r
56 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
57 <a href="https://wiki.libsdl.org/SDL_RWFromMem">SDL_RWFromMem - SDL Wiki</a>
\r