File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1978,7 +1978,7 @@ Memory View
1978
1978
< bytes > = bytes (< mview> ) # Creates a new bytes object.
1979
1979
< bytes > = < bytes > .join(< coll_of_mviews> ) # Joins mviews using bytes object as sep.
1980
1980
< list > = list (< mview> ) # Returns list of ints or floats.
1981
- < str > = str (< mview> , ' utf-8' )
1981
+ < str > = str (< mview> , ' utf-8' ) # Treats mview as a seqence of bytes.
1982
1982
< int > = int .from_bytes(< mview> , byteorder = ' big/little' , signed = False )
1983
1983
' <hex>' = < mview> .hex()
1984
1984
```
Original file line number Diff line number Diff line change 1752
1752
<bytes> = bytes(<mview>) < span class ="hljs-comment "> # Creates a new bytes object.</ span >
1753
1753
<bytes> = <bytes>.join(<coll_of_mviews>) < span class ="hljs-comment "> # Joins mviews using bytes object as sep.</ span >
1754
1754
<list> = list(<mview>) < span class ="hljs-comment "> # Returns list of ints or floats.</ span >
1755
- <str> = str(<mview>, < span class ="hljs-string "> 'utf-8'</ span > )
1755
+ <str> = str(<mview>, < span class ="hljs-string "> 'utf-8'</ span > ) < span class =" hljs-comment " > # Treats mview as a seqence of bytes. </ span >
1756
1756
<int> = int.from_bytes(<mview>, byteorder=< span class ="hljs-string "> 'big/little'</ span > , signed=< span class ="hljs-keyword "> False</ span > )
1757
1757
< span class ="hljs-string "> '<hex>'</ span > = <mview>.hex()
1758
1758
</ code > </ pre > </ div >
You can’t perform that action at this time.
0 commit comments