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

Function stbi__rewind

Source/Utils/stb_image.h:885–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883#endif // !STBI_NO_STDIO
884
885static void stbi__rewind(stbi__context *s)
886{
887 // conceptually rewind SHOULD rewind to the beginning of the stream,
888 // but we just rewind to the beginning of the initial buffer, because
889 // we only use it after doing 'test', which only ever looks at at most 92 bytes
890 s->img_buffer = s->img_buffer_original;
891 s->img_buffer_end = s->img_buffer_original_end;
892}
893
894enum
895{

Callers 15

stbi__jpeg_testFunction · 0.85
stbi__jpeg_info_rawFunction · 0.85
stbi__png_testFunction · 0.85
stbi__png_info_rawFunction · 0.85
stbi__png_is16Function · 0.85
stbi__bmp_testFunction · 0.85
stbi__tga_infoFunction · 0.85
stbi__tga_testFunction · 0.85
stbi__psd_testFunction · 0.85
stbi__pic_testFunction · 0.85
stbi__gif_testFunction · 0.85
stbi__gif_info_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected