will take *data ownership, saves copy
| 220 | } |
| 221 | // will take *data ownership, saves copy |
| 222 | void WriteDestructive(TVector<char>* data) { |
| 223 | int n = data ? data->ysize() : 0; |
| 224 | Write(n); |
| 225 | if (n > 0) { |
| 226 | TVector<char>& local = DataVectors.emplace_back(std::move(*data)); |
| 227 | Chain.AddBlock(&local[0], local.ysize()); |
| 228 | } |
| 229 | } |
| 230 | void AttachSharedData(TIntrusivePtr<TSharedMemory> shm) { |
| 231 | SharedData = shm; |
| 232 | } |
no test coverage detected