| 2323 | } |
| 2324 | |
| 2325 | Status CheckNotReleased() { |
| 2326 | if (StreamTraits::IsReleasedFunc(&stream_)) { |
| 2327 | return Status::Invalid( |
| 2328 | "Attempt to read from a stream that has already been closed"); |
| 2329 | } |
| 2330 | |
| 2331 | return Status::OK(); |
| 2332 | } |
| 2333 | |
| 2334 | Status StatusFromCError(int errno_like) const { |
| 2335 | return StatusFromCError(&stream_, errno_like); |