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

Method getBuffer

src/yvalve/why.cpp:621–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621UCHAR* SQLDAMetadataLauncher::getBuffer()
622{
623 if (metadata)
624 {
625 // ASF: It's important to call getMessageLength before check speedHackEnabled.
626 unsigned length = metadata->getMessageLength(NULL);
627
628 if (metadata->speedHackEnabled)
629 return reinterpret_cast<UCHAR*>(metadata->sqlda->sqlvar[0].sqldata);
630
631 return buffer.getBuffer(length, false);
632 }
633 else
634 {
635 buffer.clear();
636 return NULL;
637 }
638}
639
640IMetadataBuilder* SQLDAMetadata::getBuilder(CheckStatusWrapper* status)
641{

Callers 12

PREPARSE_executeFunction · 0.45
gatherDataMethod · 0.45
startMethod · 0.45
internalServiceAttachMethod · 0.45
buildPrepareInfoMethod · 0.45
getPathFromHInstanceFunction · 0.45

Calls 2

getMessageLengthMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected