MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / stuff_string

Function stuff_string

src/yvalve/array.cpp:651–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649
650
651static ISC_STATUS stuff_string(gen_t* gen, UCHAR sdl, const SCHAR* string)
652{
653/**************************************
654 *
655 * s t u f f _ s t r i n g
656 *
657 **************************************
658 *
659 * Functional description
660 * Stuff a "thing" then a counted string.
661 *
662 **************************************/
663 ISC_STATUS* status = gen->gen_status;
664
665 if (stuff_sdl(gen, sdl))
666 return status[1];
667 if (stuff_sdl(gen, static_cast<int>(strlen(string))))
668 return status[1];
669
670 while (*string)
671 {
672 if (stuff_sdl(gen, *string++))
673 return status[1];
674 }
675
676 return FB_SUCCESS;
677}

Callers 1

gen_sdlFunction · 0.85

Calls 1

stuff_sdlFunction · 0.85

Tested by

no test coverage detected