diff --git a/README.md b/README.md index a516d8b..703a4c1 100644 --- a/README.md +++ b/README.md @@ -1861,7 +1861,7 @@ Bytes ### Encode ```python - = .encode('utf-8') # Or: bytes(, 'utf-8') + = bytes(, 'utf-8') # Or: .encode('utf-8') = bytes() # Ints must be in range from 0 to 255. = .to_bytes(n_bytes, byteorder='big|little', signed=False) = bytes.fromhex('') @@ -1869,7 +1869,7 @@ Bytes ### Decode ```python - = .decode('utf-8') # Or: str(, 'utf-8') + = str(, 'utf-8') # Or: .decode('utf-8') = list() # Returns ints in range from 0 to 255. = int.from_bytes(, byteorder='big|little', signed=False) '' = .hex() diff --git a/index.html b/index.html index d1484b0..7b57028 100644 --- a/index.html +++ b/index.html @@ -1658,13 +1658,13 @@ db = connector.connect(host=<str>, user=<str>, password=<str>, -

Encode

<bytes> = <str>.encode('utf-8')          # Or: bytes(<str>, 'utf-8')
+

Encode

<bytes> = bytes(<str>, 'utf-8')          # Or: <str>.encode('utf-8')
 <bytes> = bytes(<coll_of_ints>)          # Ints must be in range from 0 to 255.
 <bytes> = <int>.to_bytes(n_bytes, byteorder='big|little', signed=False)
 <bytes> = bytes.fromhex('<hex>')
 
-

Decode

<str>   = <bytes>.decode('utf-8')        # Or: str(<bytes>, 'utf-8')
+

Decode

<str>   = str(<bytes>, 'utf-8')          # Or: <bytes>.decode('utf-8')
 <list>  = list(<bytes>)                  # Returns ints in range from 0 to 255.
 <int>   = int.from_bytes(<bytes>, byteorder='big|little', signed=False)
 '<hex>' = <bytes>.hex()