Can we use the Python buffer interface for __next__/loop/dispatch to save copying the packet to a bytes? Ownership is troublesome since the data is only valid until the next call to __next__ or returning from the callback. Also we want the returned object to have a nice interface and not be something that will always be immediately casted to bytes to make any use of it.
Can we use the Python buffer interface for
__next__/loop/dispatchto save copying the packet to a bytes? Ownership is troublesome since the data is only valid until the next call to__next__or returning from the callback. Also we want the returned object to have a nice interface and not be something that will always be immediately casted to bytes to make any use of it.