public void Reset(Stream/*!*/ stream, IOMode mode) { _mode = mode; SetStream(stream); SetFileDescriptor(Context.AllocateFileDescriptor(stream)); }