ServiceInterface changes from #93 do allocate memory at runtime #149
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Service Interface stream allocates memory at runtime. It allocates 41 Bytes by returning a copy of a std::string in "getPreamble".
The preamble is allocated at construction time as a member of the ServiceInterfaceBuffer so we can return a pointer to it. So, the fix would be to change getPreamble in the ServiceInterfaceBuffer to: