From f36d1a9094de27e6d3cf115e5d75f59d3a70b503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 3 Dec 2019 16:51:49 +0100 Subject: [PATCH] Memoryview --- README.md | 2 +- index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 62e0b7b..1383938 100644 --- a/README.md +++ b/README.md @@ -1974,12 +1974,12 @@ Memory View = [] # Returns an int or a float. = [] # Mview with rearranged elements. = .cast('') # Casts memoryview to the new format. -.write() # Appends mview to the binary file. .release() # Releases the object's memory buffer. ``` ### Decode ```python +.write() # Appends mview to the binary file. = bytes() # Creates a new bytes object. = .join() # Joins mviews using bytes object as sep. = list() # Returns list of ints or floats. diff --git a/index.html b/index.html index f38494a..44551c1 100644 --- a/index.html +++ b/index.html @@ -1746,12 +1746,12 @@ db = connector.connect(host=<str>, user=<str>, password=<str>, <real> = <mview>[<index>] # Returns an int or a float. <mview> = <mview>[<slice>] # Mview with rearranged elements. <mview> = <mview>.cast('<typecode>') # Casts memoryview to the new format. -<bin_file>.write(<mview>) # Appends mview to the binary file. <mview>.release() # Releases the object's memory buffer. -

Decode

<bytes> = bytes(<mview>)                       # Creates a new bytes object.
+

Decode

<bin_file>.write(<mview>)                      # Appends mview to the binary file.
+<bytes> = bytes(<mview>)                       # Creates a new bytes object.
 <bytes> = <bytes>.join(<coll_of_mviews>)       # Joins mviews using bytes object as sep.
 <list>  = list(<mview>)                        # Returns list of ints or floats.
 <str>   = str(<mview>, 'utf-8')