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

Function jas_stream_create

DevIL/src-IL/src/il_jp2.cpp:465–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465static jas_stream_t *jas_stream_create()
466{
467 jas_stream_t *stream;
468
469 if (!(stream = (jas_stream_t*)jas_malloc(sizeof(jas_stream_t)))) {
470 return 0;
471 }
472 stream->openmode_ = 0;
473 stream->bufmode_ = 0;
474 stream->flags_ = 0;
475 stream->bufbase_ = 0;
476 stream->bufstart_ = 0;
477 stream->bufsize_ = 0;
478 stream->ptr_ = 0;
479 stream->cnt_ = 0;
480 stream->ops_ = 0;
481 stream->obj_ = 0;
482 stream->rwcnt_ = 0;
483 stream->rwlimit_ = -1;
484
485 return stream;
486}
487
488static void jas_stream_destroy(jas_stream_t *stream)
489{

Callers 2

iJp2ReadStreamFunction · 0.85
iJp2WriteStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected