Skip to content

Commit faa3c15

Browse files
committed
Updated documentation; fixed client-side
Also fixed bug in flex serialization
1 parent 4f492e3 commit faa3c15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2122
-820
lines changed

compile.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,19 @@ s.addTask(s => {
5555
})
5656
})
5757
console.log('Compiling: Replacing large dependencies')
58-
const downloadFiles = [
58+
const uploadFiles = [
5959
'/client-side/binary-ajax.js',
6060
'/client-side/common.js',
6161
'/config.js',
62-
'/constructor-registry.js',
6362
'/lib/bit-math.js',
6463
'/lib/buffer-string.js',
64+
'/lib/flex-int.js',
6565
'/lib/growable-buffer.js',
6666
'/lib/strint.js',
6767
'/lib/util-inspect.js',
6868
'/recursive-registry.js'
6969
]
70+
const downloadFiles = uploadFiles.concat(['/constructor-registry.js'])
7071
s.callback(() => {
7172
//Include the file in the browserify result because it is require()d by other files
7273
function exposeFile(b, name, fileName = name) {
@@ -97,17 +98,7 @@ s.callback(() => {
9798
modifiedFiles: {
9899
noutil: ['/lib/assert', '/structure-types']
99100
},
100-
exposeFiles: [
101-
'/client-side/binary-ajax.js',
102-
'/client-side/common.js',
103-
'/config.js',
104-
'/lib/bit-math.js',
105-
'/lib/buffer-string.js',
106-
'/lib/growable-buffer.js',
107-
'/lib/strint.js',
108-
'/lib/util-inspect.js',
109-
'/recursive-registry.js'
110-
],
101+
exposeFiles: uploadFiles,
111102
outputFile: '/compiled/upload.js'
112103
})
113104
compile(downloadB, {

compiled/download.js

Lines changed: 120 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled/upload-download.js

Lines changed: 121 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled/upload.js

Lines changed: 97 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ArrayType.html

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ <h1 class="page-title">Class: ArrayType</h1>
3030

3131
<h2>ArrayType</h2>
3232

33-
<div class="class-description">A type storing a variable-length array of values of the same type.
34-
The length of any value must fit in a 4-byte unsigned integer.</div>
33+
<div class="class-description">A type storing a variable-length array of values of the same type</div>
3534

3635

3736
</header>
@@ -141,7 +140,7 @@ <h5>Parameters:</h5>
141140

142141
<dt class="tag-source">Source:</dt>
143142
<dd class="tag-source"><ul class="dummy"><li>
144-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1009">line 1009</a>
143+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1043">line 1043</a>
145144
</li></ul></dd>
146145

147146

@@ -317,7 +316,7 @@ <h5>Parameters:</h5>
317316

318317
<dt class="tag-source">Source:</dt>
319318
<dd class="tag-source"><ul class="dummy"><li>
320-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line86">line 86</a>
319+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line80">line 80</a>
321320
</li></ul></dd>
322321

323322

@@ -475,7 +474,7 @@ <h5>Parameters:</h5>
475474

476475
<dt class="tag-source">Source:</dt>
477476
<dd class="tag-source"><ul class="dummy"><li>
478-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line192">line 192</a>
477+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line181">line 181</a>
479478
</li></ul></dd>
480479

481480

@@ -584,7 +583,7 @@ <h4 class="name" id="getHash"><span class="type-signature"></span>getHash<span c
584583

585584
<dt class="tag-source">Source:</dt>
586585
<dd class="tag-source"><ul class="dummy"><li>
587-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line132">line 132</a>
586+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line121">line 121</a>
588587
</li></ul></dd>
589588

590589

@@ -694,7 +693,7 @@ <h4 class="name" id="getSignature"><span class="type-signature"></span>getSignat
694693

695694
<dt class="tag-source">Source:</dt>
696695
<dd class="tag-source"><ul class="dummy"><li>
697-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line150">line 150</a>
696+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line139">line 139</a>
698697
</li></ul></dd>
699698

700699

@@ -804,7 +803,7 @@ <h4 class="name" id="toBuffer"><span class="type-signature"></span>toBuffer<span
804803

805804
<dt class="tag-source">Source:</dt>
806805
<dd class="tag-source"><ul class="dummy"><li>
807-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line113">line 113</a>
806+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line102">line 102</a>
808807
</li></ul></dd>
809808

810809

@@ -964,7 +963,7 @@ <h5>Parameters:</h5>
964963

965964
<dt class="tag-source">Source:</dt>
966965
<dd class="tag-source"><ul class="dummy"><li>
967-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line182">line 182</a>
966+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line171">line 171</a>
968967
</li></ul></dd>
969968

970969

@@ -1106,7 +1105,7 @@ <h5>Parameters:</h5>
11061105

11071106

11081107

1109-
<td class="description last">The value to write. Length of the array must fit in a 4-byte unsigned integer.</td>
1108+
<td class="description last">The value to write</td>
11101109
</tr>
11111110

11121111

@@ -1152,7 +1151,7 @@ <h5>Parameters:</h5>
11521151

11531152
<dt class="tag-source">Source:</dt>
11541153
<dd class="tag-source"><ul class="dummy"><li>
1155-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1050">line 1050</a>
1154+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1081">line 1081</a>
11561155
</li></ul></dd>
11571156

11581157

@@ -1228,7 +1227,7 @@ <h5>Example</h5>
12281227
</div>
12291228

12301229
<nav>
1231-
<h2><a href="index.html">Home</a></h2><h3>Externals</h3><ul><li><a href="external-ArrayBuffer.html">ArrayBuffer</a></li><li><a href="external-Date.html">Date</a></li><li><a href="external-http.html">http</a></li></ul><h3>Classes</h3><ul><li><a href="ArrayType.html">ArrayType</a></li><li><a href="BigIntType.html">BigIntType</a></li><li><a href="BigUnsignedIntType.html">BigUnsignedIntType</a></li><li><a href="BooleanArrayType.html">BooleanArrayType</a></li><li><a href="BooleanTupleType.html">BooleanTupleType</a></li><li><a href="BooleanType.html">BooleanType</a></li><li><a href="BufferStream.html">BufferStream</a></li><li><a href="ByteType.html">ByteType</a></li><li><a href="CharType.html">CharType</a></li><li><a href="ChoiceType.html">ChoiceType</a></li><li><a href="DateType.html">DateType</a></li><li><a href="DayType.html">DayType</a></li><li><a href="DoubleType.html">DoubleType</a></li><li><a href="EnumType.html">EnumType</a></li><li><a href="external-http.IncomingMessage.html">IncomingMessage</a></li><li><a href="external-http.ServerResponse.html">ServerResponse</a></li><li><a href="FloatType.html">FloatType</a></li><li><a href="GrowableBuffer.html">GrowableBuffer</a></li><li><a href="IntType.html">IntType</a></li><li><a href="LongType.html">LongType</a></li><li><a href="MapType.html">MapType</a></li><li><a href="NamedChoiceType.html">NamedChoiceType</a></li><li><a href="OctetsType.html">OctetsType</a></li><li><a href="OptionalType.html">OptionalType</a></li><li><a href="PointerType.html">PointerType</a></li><li><a href="RecursiveType.html">RecursiveType</a></li><li><a href="SetType.html">SetType</a></li><li><a href="ShortType.html">ShortType</a></li><li><a href="StringType.html">StringType</a></li><li><a href="StructType.html">StructType</a></li><li><a href="TimeType.html">TimeType</a></li><li><a href="TupleType.html">TupleType</a></li><li><a href="Type.html">Type</a></li><li><a href="UnsignedByteType.html">UnsignedByteType</a></li><li><a href="UnsignedIntType.html">UnsignedIntType</a></li><li><a href="UnsignedLongType.html">UnsignedLongType</a></li><li><a href="UnsignedShortType.html">UnsignedShortType</a></li></ul><h3>Namespaces</h3><ul><li><a href="r.html">r</a></li></ul><h3>Global</h3><ul><li><a href="global.html#download">download</a></li><li><a href="global.html#getType">getType</a></li><li><a href="global.html#httpRespond">httpRespond</a></li><li><a href="global.html#isRegistered">isRegistered</a></li><li><a href="global.html#readType">readType</a></li><li><a href="global.html#readTypeAndValue">readTypeAndValue</a></li><li><a href="global.html#readValue">readValue</a></li><li><a href="global.html#registerType">registerType</a></li><li><a href="global.html#upload">upload</a></li><li><a href="global.html#writeType">writeType</a></li><li><a href="global.html#writeTypeAndValue">writeTypeAndValue</a></li><li><a href="global.html#writeValue">writeValue</a></li></ul>
1230+
<h2><a href="index.html">Home</a></h2><h3>Externals</h3><ul><li><a href="external-ArrayBuffer.html">ArrayBuffer</a></li><li><a href="external-Date.html">Date</a></li><li><a href="external-http.html">http</a></li></ul><h3>Classes</h3><ul><li><a href="ArrayType.html">ArrayType</a></li><li><a href="BigIntType.html">BigIntType</a></li><li><a href="BigUnsignedIntType.html">BigUnsignedIntType</a></li><li><a href="BooleanArrayType.html">BooleanArrayType</a></li><li><a href="BooleanTupleType.html">BooleanTupleType</a></li><li><a href="BooleanType.html">BooleanType</a></li><li><a href="BufferStream.html">BufferStream</a></li><li><a href="ByteType.html">ByteType</a></li><li><a href="CharType.html">CharType</a></li><li><a href="ChoiceType.html">ChoiceType</a></li><li><a href="DateType.html">DateType</a></li><li><a href="DayType.html">DayType</a></li><li><a href="DoubleType.html">DoubleType</a></li><li><a href="EnumType.html">EnumType</a></li><li><a href="external-http.IncomingMessage.html">IncomingMessage</a></li><li><a href="external-http.ServerResponse.html">ServerResponse</a></li><li><a href="FlexUnsignedIntType.html">FlexUnsignedIntType</a></li><li><a href="FloatType.html">FloatType</a></li><li><a href="GrowableBuffer.html">GrowableBuffer</a></li><li><a href="IntType.html">IntType</a></li><li><a href="LongType.html">LongType</a></li><li><a href="MapType.html">MapType</a></li><li><a href="NamedChoiceType.html">NamedChoiceType</a></li><li><a href="OctetsType.html">OctetsType</a></li><li><a href="OptionalType.html">OptionalType</a></li><li><a href="PointerType.html">PointerType</a></li><li><a href="RecursiveType.html">RecursiveType</a></li><li><a href="SetType.html">SetType</a></li><li><a href="ShortType.html">ShortType</a></li><li><a href="StringType.html">StringType</a></li><li><a href="StructType.html">StructType</a></li><li><a href="TimeType.html">TimeType</a></li><li><a href="TupleType.html">TupleType</a></li><li><a href="Type.html">Type</a></li><li><a href="UnsignedByteType.html">UnsignedByteType</a></li><li><a href="UnsignedIntType.html">UnsignedIntType</a></li><li><a href="UnsignedLongType.html">UnsignedLongType</a></li><li><a href="UnsignedShortType.html">UnsignedShortType</a></li></ul><h3>Namespaces</h3><ul><li><a href="r.html">r</a></li></ul><h3>Global</h3><ul><li><a href="global.html#download">download</a></li><li><a href="global.html#getType">getType</a></li><li><a href="global.html#httpRespond">httpRespond</a></li><li><a href="global.html#isRegistered">isRegistered</a></li><li><a href="global.html#readType">readType</a></li><li><a href="global.html#readTypeAndValue">readTypeAndValue</a></li><li><a href="global.html#readValue">readValue</a></li><li><a href="global.html#registerType">registerType</a></li><li><a href="global.html#upload">upload</a></li><li><a href="global.html#writeType">writeType</a></li><li><a href="global.html#writeTypeAndValue">writeTypeAndValue</a></li><li><a href="global.html#writeValue">writeValue</a></li></ul>
12321231
</nav>
12331232

12341233
<br class="clear">

0 commit comments

Comments
 (0)