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

Function stbi__start_mem

Source/Utils/stb_image.h:825–832  ·  view source on GitHub ↗

initialize a memory-decode context

Source from the content-addressed store, hash-verified

823
824// initialize a memory-decode context
825static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)
826{
827 s->io.read = NULL;
828 s->read_from_callbacks = 0;
829 s->callback_already_read = 0;
830 s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer;
831 s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len;
832}
833
834// initialize a callback-based context
835static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)

Callers 7

stbi_load_16_from_memoryFunction · 0.85
stbi_load_from_memoryFunction · 0.85
stbi_loadf_from_memoryFunction · 0.85
stbi_is_hdr_from_memoryFunction · 0.85
stbi_info_from_memoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected