You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1746,12 +1746,12 @@
1746
1746
<real> = <mview>[<index>] <spanclass="hljs-comment"># Returns an int or a float.</span>
1747
1747
<mview> = <mview>[<slice>] <spanclass="hljs-comment"># Mview with rearranged elements.</span>
1748
1748
<mview> = <mview>.cast(<spanclass="hljs-string">'<typecode>'</span>) <spanclass="hljs-comment"># Casts memoryview to the new format.</span>
1749
-
<bin_file>.write(<mview>) <spanclass="hljs-comment"># Appends mview to the binary file.</span>
1750
1749
<mview>.release() <spanclass="hljs-comment"># Releases the object's memory buffer.</span>
1751
1750
</code></pre></div>
1752
1751
1753
1752
1754
-
<div><h3id="decode-2">Decode</h3><pre><codeclass="python language-python hljs"><bytes> = bytes(<mview>) <spanclass="hljs-comment"># Creates a new bytes object.</span>
1753
+
<div><h3id="decode-2">Decode</h3><pre><codeclass="python language-python hljs"><bin_file>.write(<mview>) <spanclass="hljs-comment"># Appends mview to the binary file.</span>
1754
+
<bytes> = bytes(<mview>) <spanclass="hljs-comment"># Creates a new bytes object.</span>
1755
1755
<bytes> = <bytes>.join(<coll_of_mviews>) <spanclass="hljs-comment"># Joins mviews using bytes object as sep.</span>
1756
1756
<list> = list(<mview>) <spanclass="hljs-comment"># Returns list of ints or floats.</span>
0 commit comments