Types
PyByteArray = ref object
- Source Edit
Procs
func `$`(self: PyByteArray): string {....raises: [], tags: [], forbids: [].}
- Source Edit
func `*=`(mself: PyByteArray; n: int) {....raises: [], tags: [], forbids: [].}
-
bytearray.__imul__
Python: if n < 1: self.clear()
Source Edit func `+=`(mself: PyByteArray; other: BytesLike)
- Source Edit
func `<`(self: PyByteArray; other: PyByteArray): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `<`(self: PyByteArray; other: PyBytes): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `<=`(self: PyByteArray; other: PyByteArray): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `<=`(self: PyByteArray; other: PyBytes): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `==`(self: PyByteArray; other: PyByteArray): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `==`(self: PyByteArray; other: PyBytes): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
func `[]`(self: PyByteArray; i: HSlice[int, BackwardsIndex]): PyByteArray {. ...raises: [], tags: [], forbids: [].}
- Source Edit
func `[]`(self: PyByteArray; i: Slice[int]): PyByteArray {....raises: [], tags: [], forbids: [].}
- EXT. s[1..2] means s[1:3], and the latter is not valid Nim code Source Edit
func `[]=`(ms: var PyByteArray; indices: Slice[int]; o: Sequence[int])
- Source Edit
func `[]=`(mself: PyByteArray; i: HSlice[int, BackwardsIndex]; val: BytesLike)
- Source Edit
func `[]=`(mself: PyByteArray; i: int; val: int) {....raises: [], tags: [], forbids: [].}
- Source Edit
func `[]=`(mself: PyByteArray; i: Slice[int]; val: BytesLike)
- EXT. s[1..2] means s[1:3], and the latter is not valid Nim code Source Edit
func append(mself: PyByteArray; val: int) {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
func bytearray(): PyByteArray {....raises: [], tags: [], forbids: [].}
- Source Edit
func bytearray(it: Iterable[char]): PyByteArray
- EXT. Source Edit
func bytearray(it: Iterable[int]): PyByteArray
- Source Edit
func bytearray(nbytes: int): PyByteArray {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
func bytearray(o: BytesLike): PyByteArray
- Source Edit
func bytearray(s: string): PyByteArray {....raises: [], tags: [], forbids: [].}
- Source Edit
func bytes(self: sink PyByteArray): PyBytes {.inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
func clear(mself: PyByteArray) {....raises: [], tags: [], forbids: [].}
- Source Edit
func copy(self: PyByteArray): PyByteArray {....raises: [], tags: [], forbids: [].}
- Source Edit
func delitem(ms: var PyByteArray; indices: PySlice) {....raises: [], tags: [], forbids: [].}
- Source Edit
func delitem(ms: var PyByteArray; indices: Slice[int]) {....raises: [], tags: [], forbids: [].}
- Source Edit
func delitem(mself: PyByteArray; i: int) {....raises: [], tags: [], forbids: [].}
- Source Edit
func extend(mself: PyByteArray; other: BytesLike)
- Source Edit
func getChar(self: PyByteArray; i: Natural): char {....raises: [], tags: [], forbids: [].}
- Source Edit
func getCharPtr(self: PyByteArray; i: Natural | Natural): ptr char
- EXT. unstable. used by Lib/array frombytes and tobytes. Source Edit
func insert(mself: PyByteArray; i: int; val: int) {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
func len(self: PyByteArray): int {....raises: [], tags: [], forbids: [].}
- Source Edit
func newPyByteArray(): PyByteArray {.inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
func newPyByteArray(len: int): PyByteArray {.inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
func newPyByteArray(s: sink string): PyByteArray {.inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
func pop(mself: PyByteArray): int {....raises: [], tags: [], forbids: [].}
- Source Edit
func remove(mself: PyByteArray; val: int) {....raises: [ValueError], tags: [], forbids: [].}
- Source Edit
func reverse(mself: PyByteArray) {....raises: [], tags: [], forbids: [].}
- Source Edit
func toNimString(self: PyByteArray): string {....raises: [], tags: [], forbids: [].}
- Source Edit
func toNimString(self: var PyByteArray): var string {....raises: [], tags: [], forbids: [].}
- Source Edit
Iterators
iterator chars(self: PyByteArray): char {....raises: [], tags: [], forbids: [].}
- Source Edit
iterator items(self: PyByteArray): int {....raises: [], tags: [], forbids: [].}
- Source Edit
Converters
converter toPyBytes(self: PyByteArray): PyBytes {....raises: [], tags: [], forbids: [].}
- Source Edit