File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1964,10 +1964,10 @@ Memory View
1964
1964
< bin_file> .write(< mview> ) # Writes mview to a binary file.
1965
1965
< bytes > = bytes (< mview> ) # Creates a new bytes object.
1966
1966
< bytes > = < bytes > .join(< coll_of_mviews> ) # Joins mviews using bytes object as sep.
1967
+ < list > = list (< mview> ) # Returns list of ints or floats.
1967
1968
```
1968
1969
1969
1970
``` python
1970
- < list > = list (< mview> ) # Returns list of ints or floats.
1971
1971
< str > = str (< mview> , ' utf-8' )
1972
1972
< int > = int .from_bytes(< mview> , byteorder = ' big|little' , signed = False )
1973
1973
' <hex>' = < mview> .hex()
Original file line number Diff line number Diff line change 1744
1744
< pre > < code class ="python language-python hljs "> <bin_file>.write(<mview>) < span class ="hljs-comment "> # Writes mview to a binary file.</ span >
1745
1745
<bytes> = bytes(<mview>) < span class ="hljs-comment "> # Creates a new bytes object.</ span >
1746
1746
<bytes> = <bytes>.join(<coll_of_mviews>) < span class ="hljs-comment "> # Joins mviews using bytes object as sep.</ span >
1747
+ <list> = list(<mview>) < span class ="hljs-comment "> # Returns list of ints or floats.</ span >
1747
1748
</ code > </ pre >
1748
- < pre > < code class ="python language-python hljs "> <list> = list(<mview>) < span class ="hljs-comment "> # Returns list of ints or floats.</ span >
1749
- <str> = str(<mview>, < span class ="hljs-string "> 'utf-8'</ span > )
1749
+ < pre > < code class ="python language-python hljs "> <str> = str(<mview>, < span class ="hljs-string "> 'utf-8'</ span > )
1750
1750
<int> = int.from_bytes(<mview>, byteorder=< span class ="hljs-string "> 'big|little'</ span > , signed=< span class ="hljs-keyword "> False</ span > )
1751
1751
< span class ="hljs-string "> '<hex>'</ span > = <mview>.hex()
1752
1752
</ code > </ pre >
You can’t perform that action at this time.
0 commit comments