Closed xuejun-xj closed 10 months ago
Hi @roypat , do you think this is a good idea? When I am calling set_one_reg/get_one_reg, I want to known how long the vector should be initialized. Use this helper function can easily do what I want.
@xuejun-xj I don't see any problem in making reg_size
a public function so that it can be used outside of the crate. Feel free to open a PR with this change.
@xuejun-xj I don't see any problem in making
reg_size
a public function so that it can be used outside of the crate. Feel free to open a PR with this change.
Thanks :), @andreeaflorescu . I will open a PR later for it.
As get_one_reg/set_one_reg uses slice to save the value of register, exporting reg_size function maybe a better way for use of these two ioctls? Users can easily calculate the size of registers and create the specific vector.