| 275 | } |
| 276 | |
| 277 | IODevicePtr Buffer::clone() { |
| 278 | auto cloned = make_shared<Buffer>(*this); |
| 279 | // Reset position to 0 while preserving mode and data |
| 280 | cloned->seek(0); |
| 281 | return cloned; |
| 282 | } |
| 283 | |
| 284 | IODevicePtr ExternalBuffer::clone() { |
| 285 | Logger::info("Cloning ExternalBuffer from position {}"); |