Ejemplo n.º 1
0
 internal static Stream/*!*/ GetDescriptorStream(RubyContext/*!*/ context, int descriptor) {
     Stream stream = context.GetStream(descriptor);
     if (stream == null) {
         throw RubyExceptions.CreateEBADF();
     }
     return stream;
 }
Ejemplo n.º 2
0
        internal static Stream /*!*/ GetDescriptorStream(RubyContext /*!*/ context, int descriptor)
        {
            Stream stream = context.GetStream(descriptor);

            if (stream == null)
            {
                throw RubyExceptions.CreateEBADF();
            }
            return(stream);
        }