// Filename: identityStreamBuf.I
// Created by:  drose (14Nov06)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University.  All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license.  You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////
//     Function: IdentityStreamBuf::is_closed
//       Access: Public
//  Description:
////////////////////////////////////////////////////////////////////
INLINE bool IdentityStreamBuf::
is_closed() const {
  return (_source == (BioStreamPtr *)NULL || (*_source)->is_closed());
}

////////////////////////////////////////////////////////////////////
//     Function: IdentityStreamBuf::get_read_state
//       Access: Public
//  Description:
////////////////////////////////////////////////////////////////////
INLINE ISocketStream::ReadState IdentityStreamBuf::
get_read_state() const {
  return _read_state;
}
