MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / string_alloc

Function string_alloc

dds/DCPS/Serializer.cpp:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace {
33
34ACE_CDR::Char* string_alloc(ACE_CDR::ULong size)
35{
36 return static_cast<ACE_CDR::Char*>(std::malloc(size + 1));
37}
38
39void string_free(ACE_CDR::Char* ptr)
40{

Callers 5

allocMethod · 0.70
initMethod · 0.50
read_basic_valueMethod · 0.50
string_dupMethod · 0.50
allocMethod · 0.50

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected