Nerodia Reference Manual

8.3. PyBytes🔗

🔗def

A Python bytes object. That is, an instance of bytes.

🔗def

The immutable Python byte array type, bytes.

🔗opaque
Nerodia.mkPyBytes (s : ByteArray) : CPyIO PyBytes
Nerodia.mkPyBytes (s : ByteArray) : CPyIO PyBytes

Creates a Python bytes object from a Lean ByteArray.

🔗opaque

Returns the bytes of self as a Lean ByteArray.

🔗def

Returns the number of bytes in self as a Lean Nat.

🔗def

Returns the number of bytes in self as a Lean USize.