buf - pointer to buffer which will be freed with FreeBuf() data - pointer to data start within buf sz - size of useful data
| 179 | // data - pointer to data start within buf |
| 180 | // sz - size of useful data |
| 181 | void AddBlock(char* buf, const char* data, int sz) { |
| 182 | Buf.push_back(buf); |
| 183 | Chain.AddBlock(data, sz); |
| 184 | } |
| 185 | void AddBlock(TThrRefBase* buf, const char* data, int sz) { |
| 186 | AttachedStorage.push_back(buf); |
| 187 | Chain.AddBlock(data, sz); |