code: public IoBuffer encodeSharedObject(ISharedObjectMessage so) {
          final IoBuffer out = IoBuffer.allocate(128);
          out.setAutoExpand(true);
          doEncodeSharedObject(so, out);
          return out;
      }
docs: {@inheritDoc}