We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CharacteristicBuffer.readinto
1 parent 71ef507 commit 1cfedcbCopy full SHA for 1cfedcb
shared-bindings/_bleio/CharacteristicBuffer.c
@@ -80,9 +80,11 @@ static void check_for_deinit(bleio_characteristic_buffer_obj_t *self) {
80
//| :rtype: bytes or None"""
81
//| ...
82
//|
83
-//| def readinto(self, buf: WriteableBuffer) -> Optional[int]:
+//| def readinto(self, buf: WriteableBuffer, nbytes: Optional[int] = None) -> Optional[int]:
84
//| """Read bytes into the ``buf``. Read at most ``len(buf)`` bytes.
85
86
+//| You may reduce this maximum read using the ``n_bytes`` argument.
87
+//|
88
//| :return: number of bytes read and stored into ``buf``
89
//| :rtype: int or None (on a non-blocking error)"""
90
0 commit comments