| 56 | } |
| 57 | |
| 58 | const std::vector<char> ByteOutputCallback::to_string() { |
| 59 | std::vector<char> buffer; |
| 60 | buffer.resize(size_.load()); |
| 61 | readFully(buffer.data(), size_.load()); |
| 62 | return buffer; |
| 63 | } |
| 64 | |
| 65 | void ByteOutputCallback::close() { |
| 66 | is_alive_ = false; |