copy with explicit volatile-sharing semantics
| 1106 | |
| 1107 | // copy with explicit volatile-sharing semantics |
| 1108 | void share(const list& bl) |
| 1109 | { |
| 1110 | if (this != &bl) { |
| 1111 | clear(); |
| 1112 | for (const auto& bp : bl._buffers) { |
| 1113 | _buffers.push_back(*ptr_node::create(bp).release()); |
| 1114 | } |
| 1115 | _len = bl._len; |
| 1116 | _num = bl._num; |
| 1117 | } |
| 1118 | } |
| 1119 | |
| 1120 | #ifdef WITH_CRIMSON |
| 1121 | /// convert the bufferlist into a network packet |