| 127 | } |
| 128 | |
| 129 | int Buffer::append(char c){ |
| 130 | while(1 > this->space()){ |
| 131 | if(this->grow() == -1){ |
| 132 | return -1; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | *(this->slot()) = c; |
| 137 | size_ += 1; |
| 138 | return 1; |
| 139 | } |
| 140 | |
| 141 | int Buffer::append(const void *p, int size){ |
| 142 | while(size > this->space()){ |
no test coverage detected