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