| 261 | } |
| 262 | |
| 263 | void TTempBuf::Append(const void* data, size_t len) { |
| 264 | if (len > Left()) { |
| 265 | ythrow yexception() << "temp buf exhausted(" << Left() << ", " << len << ")"; |
| 266 | } |
| 267 | |
| 268 | memcpy(Current(), data, len); |
| 269 | Proceed(len); |
| 270 | } |
| 271 | |
| 272 | bool TTempBuf::IsNull() const noexcept { |
| 273 | return !Impl_; |
no outgoing calls