Skip to content

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

Merged
nulltoken merged 2 commits into
vNextfrom
ntk/odbbackend_api
Jun 7, 2014
Merged

Make OdbBackend.Read[Prefix]() methods return an UnmanagedMemoryStream#715
nulltoken merged 2 commits into
vNextfrom
ntk/odbbackend_api

Conversation

@nulltoken

Copy link
Copy Markdown
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
Copy Markdown
Member Author

/cc @synhershko

@synhershko

Copy link
Copy Markdown

+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
Copy Markdown
Member Author

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

/cc @phkelley

@synhershko

Copy link
Copy Markdown

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

@phkelley

phkelley commented Jun 7, 2014

Copy link
Copy Markdown
Member

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