From 82e5338fb0b3f2d64cc1c178c5a760decac7c33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Feb 2020 14:28:07 +0100 Subject: [PATCH] Memory view --- README.md | 1 + index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 407df5b..58e71dc 100644 --- a/README.md +++ b/README.md @@ -2007,6 +2007,7 @@ Memory View .write() # Writes mview to the binary file. = bytes() # Creates a new bytes object. = .join() # Joins mviews using bytes object as sep. + = array('', ) # Treats mview as a sequence of numbers. = list() # Returns list of ints or floats. = str(, 'utf-8') # Treats mview as a bytes object. = int.from_bytes(, byteorder='big/little', signed=False) diff --git a/index.html b/index.html index a88f36f..ce88560 100644 --- a/index.html +++ b/index.html @@ -1778,6 +1778,7 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,

Decode

<bin_file>.write(<mview>)                      # Writes 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.
+<array> = array('<typecode>', <mview>)         # Treats mview as a sequence of numbers.
 <list>  = list(<mview>)                        # Returns list of ints or floats.
 <str>   = str(<mview>, 'utf-8')                # Treats mview as a bytes object.
 <int>   = int.from_bytes(<mview>, byteorder='big/little', signed=False)