| 24 | Copy(x); |
| 25 | } |
| 26 | void Copy(const TBlock& x) { |
| 27 | if (x.BufSize > 0) { |
| 28 | Mem = GetIBMemPool()->Alloc(x.BufSize); |
| 29 | memcpy(Mem->GetData(), x.Mem->GetData(), x.DataSize); |
| 30 | StartOffset = x.StartOffset; |
| 31 | BufSize = x.BufSize; |
| 32 | DataSize = x.DataSize; |
| 33 | } else { |
| 34 | Mem = nullptr; |
| 35 | StartOffset = 0; |
| 36 | BufSize = 0; |
| 37 | DataSize = 0; |
| 38 | } |
| 39 | } |
| 40 | }; |
| 41 | |
| 42 | TIntrusivePtr<TIBMemPool> MemPool; |
nothing calls this directly
no test coverage detected