| 107 | } |
| 108 | |
| 109 | Result<int64_t> Read(int64_t nbytes, void* out) final { |
| 110 | auto guard = lock_.exclusive_guard(); |
| 111 | return derived()->DoRead(nbytes, out); |
| 112 | } |
| 113 | |
| 114 | Result<std::shared_ptr<Buffer>> Read(int64_t nbytes) final { |
| 115 | auto guard = lock_.exclusive_guard(); |