pycapnp icon indicating copy to clipboard operation
pycapnp copied to clipboard

Update _setDynamicField and _setDynamicFieldWithField to support memoryview

Open GrahamBarnett opened this issue 3 years ago • 1 comments

Would it be possible to update: _setDynamicField and _setDynamicFieldWithField to support value_type memoryview ?

This would prevent us having to copy into a new bytes just to write to a Data field.

Many thanks

GrahamBarnett avatar Nov 04 '22 17:11 GrahamBarnett

I don't have a lot of time these days, but I'm happy to review a PR on this. Conceptually, I think this might work.

haata avatar Nov 04 '22 18:11 haata