Skip to content

Commit

Permalink
Added type checking comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberphone committed Sep 28, 2024
1 parent a952b2e commit 5840943
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion build/document-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ <h3 id='toc'>Table of Contents</h3>
Note that this implementation does not support CBOR &quot;simple&quot; values beyond
<kbd>true</kbd>, <kbd>false</kbd>, <kbd>null</kbd>, and the three floating point variants.
</p>
<p>
The wrapper concept adds strict <i>type checking</i> to the API.
That is, if an application expects a CBOR integer and calls
<a href='#cbor.int.getint32'>getInt32()</a>, an exception will
be thrown if the referenced object is not an instance of
<a href='#wrapper.cbor.int'>CBOR.Int</a>.
</p>
See also <a href='#main.common'>Common Wrapper Methods</a>.
${CBOR_WRAPPERS}
${COMMON_INTRO}
Expand Down Expand Up @@ -511,6 +518,6 @@ <h3 id='toc'>Table of Contents</h3>
${VERSION_INFO}
API version: 1.0.8. Note that the current API version is accessible through
the static property <code>CBOR.version</code>.<br>
Document version: 2024-09-27
Document version: 2024-09-28
</body>
</html>
9 changes: 8 additions & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,13 @@ <h3 id='main.wrappers'>2.&nbsp;&nbsp;CBOR Wrapper Objects</h3>
Note that this implementation does not support CBOR &quot;simple&quot; values beyond
<kbd>true</kbd>, <kbd>false</kbd>, <kbd>null</kbd>, and the three floating point variants.
</p>
<p>
The wrapper concept adds strict <i>type checking</i> to the API.
That is, if an application expects a CBOR integer and calls
<a href='#cbor.int.getint32'>getInt32()</a>, an exception will
be thrown if the referenced object is not an instance of
<a href='#wrapper.cbor.int'>CBOR.Int</a>.
</p>
See also <a href='#main.common'>Common Wrapper Methods</a>.
<h5 id='wrapper.cbor.int'>2.1.&nbsp;&nbsp;CBOR.Int</h5>
<div class='webpkifloat'>
Expand Down Expand Up @@ -1520,6 +1527,6 @@ <h3 id='main.version'>10.&nbsp;&nbsp;Version</h3>

API version: 1.0.8. Note that the current API version is accessible through
the static property <code>CBOR.version</code>.<br>
Document version: 2024-09-27
Document version: 2024-09-28
</body>
</html>

0 comments on commit 5840943

Please sign in to comment.