lib/services.js
function createReader(rtype, wtype) {
  return rtype.equals(wtype) ? rtype : rtype.createResolver(wtype);
}
function createReader(rtype, wtype) {
  return rtype.equals(wtype) ? rtype : rtype.createResolver(wtype);
}
function createReader ( rtype , wtype ) { return rtype . equals ( wtype ) ? rtype : rtype . createResolver ( wtype ) ; }
Generate a decoder, optimizing the case where reader and writer are equal.

@param rtype {Type} Reader's type.
@param wtype {Type} Writer's type.
Generate a decoder optimizing the case where reader and writer are equal .