-
Notifications
You must be signed in to change notification settings - Fork 606
Support ArraySegment bodies in BasicPublish #303
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
Comments
@kjnilsson sounds like a new override we can safely introduce? thoughts? |
Sounds like a good idea. There may be a few changes to make for this but definitely worth investigating. |
It would be smart to also allow using Memory. To utilize memory pooling/recycling efficiently another one using IMemoryOwner (supported in the System.Memory NuGet packages for .NET Framework) making it possible to often avoid memory copies (almost entirely when pipelines are introduced) when publishing. |
I think it's safe to assume that #706 and other improvements in version |
Hello,
It will be very helpful to have the ability to receive ArraySegment body in BasicPublish method.
I have many cases in which memory needs to copied in order to build the proper body byte array instead of just defining a segment in byte array buffers.
Another posibility is to accecpt offset and length in addition to body byte array.
Thanks,
Astomat
The text was updated successfully, but these errors were encountered: