public override Object close()
{
try
{
byte[] result= ((((MemoryStream)stream).Length == 0) // !!!!! PNet bug !!!!
? new byte[0]
: ((MemoryStream)stream).ToArray());
stream.Close();
stream = null;
base.close();
return result;
}
catch (Exception e)
{
if (stream == null)
return bigloo.foreign.BUNSPEC;
else
foreign.fail( "close", e.Message, this );
return this;
}
}