Writes Raw to a memory "lump"
| 156 | |
| 157 | //! Writes Raw to a memory "lump" |
| 158 | ILuint ilSaveRawL(void *Lump, ILuint Size) |
| 159 | { |
| 160 | ILuint Pos; |
| 161 | iSetOutputLump(Lump, Size); |
| 162 | Pos = itellw(); |
| 163 | if (iSaveRawInternal() == IL_FALSE) |
| 164 | return 0; // Error occurred |
| 165 | return itellw() - Pos; // Return the number of bytes written. |
| 166 | } |
| 167 | |
| 168 | |
| 169 | // Internal function used to load the raw data. |
no test coverage detected