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

Function REMOTE_make_string

src/remote/remote.cpp:394–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393
394rem_str* REMOTE_make_string(const SCHAR* input)
395{
396/**************************************
397 *
398 * R E M O T E _ m a k e _ s t r i n g
399 *
400 **************************************
401 *
402 * Functional description
403 * Copy a given string to a permanent location, returning
404 * address of new string.
405 *
406 **************************************/
407 const USHORT length = static_cast<USHORT>(strlen(input));
408 rem_str* string = FB_NEW_RPT(*getDefaultMemoryPool(), length) rem_str;
409#ifdef DEBUG_REMOTE_MEMORY
410 printf("REMOTE_make_string allocate string %x\n", string);
411#endif
412 strcpy(string->str_data, input);
413 string->str_length = length;
414
415 return string;
416}
417
418
419void REMOTE_release_messages( RMessage* messages)

Callers 6

INET_analyzeFunction · 0.85
INET_connectFunction · 0.85
alloc_portFunction · 0.85
XNET_analyzeFunction · 0.85
alloc_portFunction · 0.85
accept_connectionFunction · 0.85

Calls 1

getDefaultMemoryPoolFunction · 0.85

Tested by

no test coverage detected