def get_proc(name, rw)
      klass = find(name)
      klass && klass.method(rw)
    end
def get_proc(name, rw)
      klass = find(name)
      klass && klass.method(rw)
    end
@api private

 Returns a callable object according to +name+.

 @param [Symbol] name
   The name of type.
 @param [:read, :write] rw
   Read or write?

 @return [Proc?]
   The proc that accepts +stream+ as the first parameter.

 @example
   Types.get_proc(:c_str, :write)
   #=> #<Method: MemoryIO::Types::CStr.write>
   Types.get_proc(:s32, :read)
   #=> #<Method: MemoryIO::Types::Number#read>