MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / allocate

Method allocate

src/misc/string_writer.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 char * FixedBufferTextWriter::allocate (int l) {
89 if ( size + l <= DAS_SMALL_BUFFER_SIZE ) {
90 char * res = data + size;
91 size += l;
92 return res;
93 } else {
94 DAS_FATAL_ERROR("DAS_SMALL_BUFFER_SIZE overflow");
95 return nullptr;
96 }
97 }
98
99 void FixedBufferTextWriter::output() {
100 // nothing to do

Callers 1

string_writer.cppFile · 0.45

Calls 2

das_aligned_alloc16Function · 0.85
das_aligned_free16Function · 0.85

Tested by

no test coverage detected