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

Method append

src/misc/string_writer.cpp:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 void FixedBufferTextWriter::append(const char * s, int l) {
80 if ( size + l <= DAS_SMALL_BUFFER_SIZE ) {
81 memcpy ( data+size, s, l );
82 size += l;
83 } else {
84 DAS_FATAL_ERROR("DAS_SMALL_BUFFER_SIZE overflow");
85 }
86 }
87
88 char * FixedBufferTextWriter::allocate (int l) {
89 if ( size + l <= DAS_SMALL_BUFFER_SIZE ) {

Callers 15

runHandlerFunction · 0.45
handle_msdFunction · 0.45
handle_mkaFunction · 0.45
find_compound_patternsFunction · 0.45
apply_replacementsFunction · 0.45
escapeStringFunction · 0.45
parseAnyNameMethod · 0.45
string_writer.cppFile · 0.45
parse_front_matterFunction · 0.45
render_postFunction · 0.45

Calls 1

allocateFunction · 0.85

Tested by

no test coverage detected