Byteslike objects (like memoryview) do not have a decode function defined. Instead, a string may be created from them by passing them to the str constructor along with an encoding.