Skip to content

Commit 0f2ecb7

Browse files
committed
Fixed #44; version bump; update Closure Compiler
1 parent ecc19f2 commit 0f2ecb7

33 files changed

+687
-426
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const type = new sb.StructType({
302302
3 /*3 characters in first field's name*/, 0x6f /*o*/, 0x6e /*n*/, 0x65 /*e*/,
303303
0x50 /*TupleType*/,
304304
0x20 /*FloatType*/,
305-
0, 0, 0, 3 /*3 floats in the tuple*/,
305+
3 /*3 floats in the tuple*/,
306306
3 /*3 characters in second field's name*/, 0x74 /*t*/, 0x77 /*w*/, 0x6f /*o*/,
307307
0xff, /*type is defined previously*/
308308
0, 11 /*type is defined 11 bytes before the 0 on this line*/
@@ -327,14 +327,14 @@ In the following definitions, `type` means the binary type format.
327327
- `DoubleType`: identifier `0x21`
328328
- `BooleanType`: identifier `0x30`
329329
- `BooleanTupleType`: identifier `0x31`, payload:
330-
- `length` - `uint32_t`
330+
- `length` - `uint8_t`
331331
- `BooleanArrayType`: identifier `0x32`
332332
- `CharType`: identifier `0x40`
333333
- `StringType`: identifier `0x41`
334334
- `OctetsType`: identifier `0x42`
335335
- `TupleType`: identifier `0x50`, payload:
336336
- `elementType` - `type`
337-
- `length` - `uint32_t`
337+
- `length` - `uint8_t`
338338
- `StructType`: identifier `0x51`, payload:
339339
- `fieldCount` - `uint8_t`
340340
- `fieldCount` instances of `field`:

compiled/download.js

Lines changed: 118 additions & 117 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: 119 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiled/upload.js

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

config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
//For use with browserify
22
if (__dirname === '/') __dirname = ''
33

4-
const assert = require(__dirname + '/lib/assert.js')
54
const base64 = require('base64-js')
65

7-
const VERSION = 9
8-
assert.between(0, VERSION, 65536)
6+
const VERSION = 10
97
const VERSION_BYTES = 2
108
const VERSION_BUFFER = new ArrayBuffer(VERSION_BYTES)
119
new DataView(VERSION_BUFFER).setUint16(0, VERSION)

docs/ArrayType.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h5>Parameters:</h5>
141141

142142
<dt class="tag-source">Source:</dt>
143143
<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#line1007">line 1007</a>
144+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1009">line 1009</a>
145145
</li></ul></dd>
146146

147147

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

11531153
<dt class="tag-source">Source:</dt>
11541154
<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#line1048">line 1048</a>
1155+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1050">line 1050</a>
11561156
</li></ul></dd>
11571157

11581158

docs/BooleanArrayType.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h4 class="name" id="BooleanArrayType"><span class="type-signature"></span>new B
9191

9292
<dt class="tag-source">Source:</dt>
9393
<dd class="tag-source"><ul class="dummy"><li>
94-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line758">line 758</a>
94+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line760">line 760</a>
9595
</li></ul></dd>
9696

9797

@@ -1102,7 +1102,7 @@ <h5>Parameters:</h5>
11021102

11031103
<dt class="tag-source">Source:</dt>
11041104
<dd class="tag-source"><ul class="dummy"><li>
1105-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line768">line 768</a>
1105+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line770">line 770</a>
11061106
</li></ul></dd>
11071107

11081108

docs/BooleanTupleType.html

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

3131
<h2>BooleanTupleType</h2>
3232

33-
<div class="class-description">A type storing a fixed-length array of <code>Boolean</code> values</div>
33+
<div class="class-description">A type storing a fixed-length array of <code>Boolean</code> values.
34+
The length must be less than 256.</div>
3435

3536

3637
</header>
@@ -99,7 +100,8 @@ <h5>Parameters:</h5>
99100

100101

101102

102-
<td class="description last">The number of <code>Boolean</code>s in each value of this type</td>
103+
<td class="description last">The number of <code>Boolean</code>s in each value of this type.
104+
Must fit in a 1-byte unsigned integer.</td>
103105
</tr>
104106

105107

@@ -140,7 +142,7 @@ <h5>Parameters:</h5>
140142

141143
<dt class="tag-source">Source:</dt>
142144
<dd class="tag-source"><ul class="dummy"><li>
143-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line724">line 724</a>
145+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line725">line 725</a>
144146
</li></ul></dd>
145147

146148

@@ -1153,7 +1155,7 @@ <h5>Parameters:</h5>
11531155

11541156
<dt class="tag-source">Source:</dt>
11551157
<dd class="tag-source"><ul class="dummy"><li>
1156-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line745">line 745</a>
1158+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line747">line 747</a>
11571159
</li></ul></dd>
11581160

11591161

docs/CharType.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h4 class="name" id="CharType"><span class="type-signature"></span>new CharType<
9191

9292
<dt class="tag-source">Source:</dt>
9393
<dd class="tag-source"><ul class="dummy"><li>
94-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line781">line 781</a>
94+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line783">line 783</a>
9595
</li></ul></dd>
9696

9797

@@ -1095,7 +1095,7 @@ <h5>Parameters:</h5>
10951095

10961096
<dt class="tag-source">Source:</dt>
10971097
<dd class="tag-source"><ul class="dummy"><li>
1098-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line791">line 791</a>
1098+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line793">line 793</a>
10991099
</li></ul></dd>
11001100

11011101

docs/ChoiceType.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ <h5>Parameters:</h5>
145145

146146
<dt class="tag-source">Source:</dt>
147147
<dd class="tag-source"><ul class="dummy"><li>
148-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1224">line 1224</a>
148+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1226">line 1226</a>
149149
</li></ul></dd>
150150

151151

@@ -1159,7 +1159,7 @@ <h5>Parameters:</h5>
11591159

11601160
<dt class="tag-source">Source:</dt>
11611161
<dd class="tag-source"><ul class="dummy"><li>
1162-
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1258">line 1258</a>
1162+
<a href="structure-types.js.html">structure-types.js</a>, <a href="structure-types.js.html#line1260">line 1260</a>
11631163
</li></ul></dd>
11641164

11651165

0 commit comments

Comments
 (0)