MCPcopy Create free account
hub / github.com/DentonW/DevIL / iff_read_data

Function iff_read_data

DevIL/src-IL/src/il_iff.cpp:344–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344char * iff_read_data(int size)
345{
346 char *buffer = (char*)ialloc(size * sizeof(char));
347 if (buffer == NULL)
348 return NULL;
349
350 if (iread(buffer, size*sizeof(char), 1) != 1) {
351 ifree(buffer);
352 return NULL;
353 }
354
355 return buffer;
356}
357
358/*
359 IFF decompress functions

Callers 1

iLoadIffInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected