5 <title>JSDoc: Namespace: Util</title>
7 <script src="scripts/prettify/prettify.js"> </script>
8 <script src="scripts/prettify/lang-css.js"> </script>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12 <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13 <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
20 <h1 class="page-title">Namespace: Util</h1>
32 <span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a>.</span>
41 <div class="container-overview">
44 <div class="description"><p>ProtoBuf utilities.</p></div>
77 <dt class="tag-source">Source:</dt>
78 <dd class="tag-source"><ul class="dummy"><li>
79 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line304">line 304</a>
106 <h3 class="subsection-title">Members</h3>
110 <h4 class="name" id=".IS_NODE"><span class="type-signature">(static, constant) </span>IS_NODE<span class="type-signature"> :boolean</span></h4>
115 <div class="description">
116 <p>Flag if running in node or not.</p>
125 <span class="param-type">boolean</span>
162 <dt class="tag-source">Source:</dt>
163 <dd class="tag-source"><ul class="dummy"><li>
164 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line312">line 312</a>
184 <h3 class="subsection-title">Methods</h3>
191 <h4 class="name" id=".fetch"><span class="type-signature">(static) </span>fetch<span class="signature">(path, callback<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {string|undefined}</span></h4>
197 <div class="description">
198 <p>Fetches a resource.</p>
212 <table class="params">
227 <th class="last">Description</th>
236 <td class="name"><code>path</code></td>
242 <span class="param-type">string</span>
249 <td class="attributes">
260 <td class="description last"><p>Resource path</p></td>
267 <td class="name"><code>callback</code></td>
273 <span class="param-type">function</span>
280 <td class="attributes">
293 <td class="description last"><p>Callback receiving the resource's contents. If omitted the resource will
294 be fetched synchronously. If the request failed, contents will be null.</p></td>
333 <dt class="tag-source">Source:</dt>
334 <dd class="tag-source"><ul class="dummy"><li>
335 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line350">line 350</a>
361 <div class="param-desc">
362 <p>Resource contents if callback is omitted (null if the request failed), else undefined.</p>
373 <span class="param-type">string</span>
376 <span class="param-type">undefined</span>
391 <h4 class="name" id=".toCamelCase"><span class="type-signature">(static) </span>toCamelCase<span class="signature">(str)</span><span class="type-signature"> → {string}</span></h4>
397 <div class="description">
398 <p>Converts a string to camel case.</p>
412 <table class="params">
425 <th class="last">Description</th>
434 <td class="name"><code>str</code></td>
440 <span class="param-type">string</span>
450 <td class="description last"></td>
489 <dt class="tag-source">Source:</dt>
490 <dd class="tag-source"><ul class="dummy"><li>
491 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line400">line 400</a>
525 <span class="param-type">string</span>
540 <h4 class="name" id=".XHR"><span class="type-signature">(static) </span>XHR<span class="signature">()</span><span class="type-signature"> → {XMLHttpRequest}</span></h4>
546 <div class="description">
547 <p>Constructs a XMLHttpRequest object.</p>
589 <dt class="tag-source">Source:</dt>
590 <dd class="tag-source"><ul class="dummy"><li>
591 <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line322">line 322</a>
618 <div class="param-desc">
619 <p>If XMLHttpRequest is not supported</p>
630 <span class="param-type">Error</span>
654 <span class="param-type">XMLHttpRequest</span>
680 <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
686 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
689 <script> prettyPrint(); </script>
690 <script src="scripts/linenumber.js"> </script>