| 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 |
no test coverage detected