| 316 | } |
| 317 | |
| 318 | inline TAutoPtr<IInputStream> ObjectByKey(const TStringBuf key) const { |
| 319 | TBlob subBlob = BlobByKey(key); |
| 320 | |
| 321 | if (UseDecompression) { |
| 322 | return new TArchiveInputStream(subBlob); |
| 323 | } else { |
| 324 | return new TMemoryInput(subBlob.Data(), subBlob.Length()); |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | inline TBlob ObjectBlobByKey(const TStringBuf key) const { |
| 329 | TBlob subBlob = BlobByKey(key); |