| 177 | } |
| 178 | |
| 179 | Result<int64_t> Read(int64_t nbytes, void* out) final { |
| 180 | auto guard = lock_.exclusive_guard(); |
| 181 | return derived()->DoRead(nbytes, out); |
| 182 | } |
| 183 | |
| 184 | Result<std::shared_ptr<Buffer>> Read(int64_t nbytes) final { |
| 185 | auto guard = lock_.exclusive_guard(); |