TYPE
byte_array
An array of bytes. This type is immutable.
Since 0.6.0
Methods
- byte_array
- decode
- empty
- Returns true if this bytearray is empty, false otherwise.
- from_base64
- Create a byte array from a base-64 string.
- from_hex
- Create a byte array from a hexadecimal string.
- from_list
- Create a bytearray from a list of integers.
- join_to_text
- Generate a textual representation of this iterable.
- len
- Returns the number of bytes in this bytearray.
- repeat
- Repeats this bytearray n times.
- reversed
- Returns a reversed copy of this bytearray.
- sha256
- Calculates the SHA-256 digest (hash) of this byte array.
- size
- Returns the number of bytes in this bytearray.
- sub
- Returns a sub-array of this byte array starting from the specified index (inclusive).
- toList
- Converts this bytearray to a list of integers.
- to_base64
- Returns a base-64 text representation of this bytearray.
- to_hex
- Returns a hexadecimal text representation of this bytearray.
- to_list
- Converts this bytearray to a list of integers.