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