Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendPacket versus ReadOnlySpan versus array of bytes #421

Open
SebMichaud opened this issue Oct 10, 2022 · 1 comment
Open

SendPacket versus ReadOnlySpan versus array of bytes #421

SebMichaud opened this issue Oct 10, 2022 · 1 comment

Comments

@SebMichaud
Copy link

Hi,
Would it be possible to expose a method to convert a byte array to a ReadOnlySpan ?
Or would it be possible to add a second SendPacket method with a byte array as en inout instead of a ReadOnlySpan ?
I work with a langage that does not allow to create a "ref struct".
If I remember well the previous version of sharppcap had a byte array as an input of the SendPacket method that was very simple to use for me.
Thanks

@kayoub5
Copy link
Collaborator

kayoub5 commented Oct 10, 2022

@SebMichaud you could open a PR with the proposed change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants