will take *data ownership, saves copy
| 244 | } |
| 245 | // will take *data ownership, saves copy |
| 246 | void WriteDestructive(TDataVector* data) { |
| 247 | int n = data ? data->ysize() : 0; |
| 248 | Write(n); |
| 249 | if (n > 0) { |
| 250 | auto& local = DataVectors.emplace_back(std::move(*data)); |
| 251 | Chain.AddBlock(&local[0], local.ysize()); |
| 252 | } |
| 253 | } |
| 254 | void AttachSharedData(TIntrusivePtr<TPosixSharedMemory> shm) { |
| 255 | SharedData = shm; |
| 256 | } |
no test coverage detected