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

Function parseString2

src/common/call_service.cpp:562–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560// as soon as we create SvcClumpletReader
561
562static void parseString2(const char*& p, Auth::CharField& f, FB_SIZE_T& loop)
563{
564 const FB_SIZE_T len = static_cast<FB_SIZE_T>(isc_vax_integer(p, sizeof(USHORT)));
565
566 FB_SIZE_T len2 = len + sizeof(ISC_USHORT) + 1;
567 if (len2 > loop)
568 {
569 throw loop;
570 }
571 loop -= len2;
572
573 p += sizeof(USHORT);
574 f.set(p, len);
575 p += len;
576
577 LocalStatus s;
578 CheckStatusWrapper statusWrapper(&s);
579
580 f.setEntered(&statusWrapper, 1);
581 check(&statusWrapper);
582}
583
584static void parseLong(const char*& p, Auth::IntField& f, FB_SIZE_T& loop)
585{

Callers 1

typeBufferFunction · 0.85

Calls 3

checkFunction · 0.70
setMethod · 0.45
setEnteredMethod · 0.45

Tested by

no test coverage detected