Skip to content

Make OdbBackend.Read[Prefix]() methods return an UnmanagedMemoryStream #715

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

Merged
merged 2 commits into from
Jun 7, 2014

Conversation

nulltoken
Copy link
Member

Currently those methods return an out Stream. However, the underlying code expects it to be an UnmanagedMemoryStream.

Let's make this explicit through a change in the parameter type rather than silently failing.

@nulltoken
Copy link
Member Author

/cc @synhershko

@synhershko
Copy link

+1

Also if there could be a way to provide the low-level API with an existing stream or byte array so it can do the copy itself (or let me write directly to it, with no middle man) - all the better

@nulltoken
Copy link
Member Author

@synhershko Done! Also added a helper function to ease the building of the UnmanagedMemoryStream.

/cc @phkelley

@synhershko
Copy link

Awesome, thanks @nulltoken , I'll update and test as soon as its released to nuget

@phkelley
Copy link
Member

phkelley commented Jun 7, 2014

This looks great. Thanks @nulltoken.

@nulltoken nulltoken merged commit 5dcf507 into vNext Jun 7, 2014
@nulltoken nulltoken deleted the ntk/odbbackend_api branch June 7, 2014 15:40
@nulltoken nulltoken added this to the v0.19.0 milestone Jun 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants