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

Function stbi_zlib_decode_buffer

Source/Utils/stb_image.h:4556–4565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4554}
4555
4556STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)
4557{
4558 stbi__zbuf a;
4559 a.zbuffer = (stbi_uc *) ibuffer;
4560 a.zbuffer_end = (stbi_uc *) ibuffer + ilen;
4561 if (stbi__do_zlib(&a, obuffer, olen, 0, 1))
4562 return (int) (a.zout - a.zout_start);
4563 else
4564 return -1;
4565}
4566
4567STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)
4568{

Callers

nothing calls this directly

Calls 1

stbi__do_zlibFunction · 0.85

Tested by

no test coverage detected