MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__at_eof

Function stbi__at_eof

Source/Utils/stb_image.h:1627–1637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625// nothing
1626#else
1627stbi_inline static int stbi__at_eof(stbi__context *s)
1628{
1629 if (s->io.read) {
1630 if (!(s->io.eof)(s->io_user_data)) return 0;
1631 // if feof() is true, check if buffer = end
1632 // special case: we've only got the special 0 character at the end
1633 if (s->read_from_callbacks == 0) return 1;
1634 }
1635
1636 return s->img_buffer >= s->img_buffer_end;
1637}
1638#endif
1639
1640#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC)

Callers 9

stbi__decode_jpeg_headerFunction · 0.85
stbi__readvalFunction · 0.85
stbi__pic_load_coreFunction · 0.85
stbi__pic_loadFunction · 0.85
stbi__hdr_gettokenFunction · 0.85
stbi__pic_infoFunction · 0.85
stbi__pnm_getintegerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected