MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / tempMemoryAllocation

Method tempMemoryAllocation

astyle/src/astyle_main.cpp:2537–2541  ·  view source on GitHub ↗

STATIC method to allocate temporary memory for AStyle formatting. The data will be converted before being returned to the calling program.

Source from the content-addressed store, hash-verified

2535// STATIC method to allocate temporary memory for AStyle formatting.
2536// The data will be converted before being returned to the calling program.
2537char* STDCALL ASLibrary::tempMemoryAllocation(unsigned long memoryNeeded)
2538{
2539 char* buffer = new(nothrow) char [memoryNeeded];
2540 return buffer;
2541}
2542
2543// Adapted from SciTE UniConversion.cxx.
2544// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected