| 205 | } |
| 206 | |
| 207 | Result<std::shared_ptr<BufferedOutputStream>> BufferedOutputStream::Create( |
| 208 | int64_t buffer_size, MemoryPool* pool, std::shared_ptr<OutputStream> raw) { |
| 209 | auto result = std::shared_ptr<BufferedOutputStream>( |
| 210 | new BufferedOutputStream(std::move(raw), pool)); |
| 211 | RETURN_NOT_OK(result->SetBufferSize(buffer_size)); |
| 212 | return result; |
| 213 | } |
| 214 | |
| 215 | BufferedOutputStream::~BufferedOutputStream() { internal::CloseFromDestructor(this); } |
| 216 |
nothing calls this directly
no test coverage detected