Procs
func bytes(nLen: int): PyBytes {....raises: [], tags: [], forbids: [].}
- null bytes of length nLen (a.k.a. b'\0'*nLen) Source Edit
func bytes(s: openArray[char]): PyBytes {....raises: [], tags: [], forbids: [].}
-
EXT.
Python has no concept of openArray
Source Edit func getCharPtr(self: PyBytes; i: Natural | BackwardsIndex): ptr char
- EXT. unstable. used by Lib/array frombytes and tobytes Source Edit
Converters
converter toNimString(self: PyBytes): string {....raises: [], tags: [], forbids: [].}
- Source Edit