cbytesparse.c.BytesMethods

class cbytesparse.c.BytesMethods(wrapped: ByteString)

Provides useful methods to a byte buffer.

Please refer to cbytesparse.py.BytesMethods for more information.

Methods

__init__

capitalize

center

contains

count

decode

endswith

find

index

isalnum

isalpha

isascii

isdecimal

isdigit

isidentifier

islower

isnumeric

isprintable

isspace

istitle

isupper

ljust

lower

lstrip

maketrans

partition

release

removeprefix

removesuffix

replace

rfind

rindex

rjust

rpartition

rstrip

startswith

strip

swapcase

title

tobytes

tolist

translate

upper

zfill

Attributes

c_contiguous

contiguous

f_contiguous

format

itemsize

nbytes

ndim

obj

readonly

shape

strides

suboffsets

__bool__()

True if self else False

__bytes__()
__contains__(key, /)

Return key in self.

__delitem__(key, /)

Delete self[key].

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__getitem__(key, /)

Return self[key].

__gt__(value, /)

Return self>value.

__hash__ = None
__init__(*args, **kwargs)
__iter__()

Implement iter(self).

__le__(value, /)

Return self<=value.

__len__()

Return len(self).

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__reduce__()

BytesMethods.__reduce_cython__(self)

__reduce_cython__(self)
__reversed__()
__setitem__(key, value, /)

Set self[key] to value.

__setstate__()

BytesMethods.__setstate_cython__(self, __pyx_state)

__setstate_cython__(self, __pyx_state)
__sizeof__()
capitalize()
center(width, fillchar, factory)
contains(token, start, endex)
count(token, start, endex)
decode(encoding, errors)
endswith(token)
find(token, start, endex)
index(token, start, endex)
isalnum()
isalpha()
isascii()
isdecimal()
isdigit()
isidentifier()
islower()
isnumeric()
isprintable()
isspace()
istitle()
isupper()
ljust(width, fillchar, factory)
lower()
lstrip(chars, factory)
static maketrans(chars_from, chars_to)
partition(sep, factory)
release()
removeprefix(prefix, factory)
removesuffix(suffix, factory)
replace(old, new, count, start, endex)
rfind(token, start, endex)
rindex(token, start, endex)
rjust(width, fillchar, factory)
rpartition(sep, factory)
rstrip(chars, factory)
startswith(token)
strip(chars, factory)
swapcase()
title()
tobytes()
tolist()
translate(table)
upper()
zfill(width, factory)