Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
namespace {
33
34
ACE_CDR::Char* string_alloc(ACE_CDR::ULong size)
35
{
36
return static_cast<ACE_CDR::Char*>(std::malloc(size + 1));
37
}
38
39
void string_free(ACE_CDR::Char* ptr)
40
{
Callers
5
alloc
Method · 0.70
init
Method · 0.50
read_basic_value
Method · 0.50
string_dup
Method · 0.50
alloc
Method · 0.50
Calls
1
malloc
Function · 0.85
Tested by
no test coverage detected