-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more overloads to set query data buffers without type validation. (…
…#295) * Throw if the buffer is empty in the most advanced overload of `Query.UnsafeSetDataBuffer`. All buffer setters are documented to throw, but this one does not. * Add APIs to set query data buffers to a raw byte buffer. The existing APIs were memory-unsafe. * Test the new method and that `UnsafeSetDataBuffer` throws on an empty buffer. * Test that `UnsafeSetDataReadOnlyBuffer` throws when given an empty buffer.
- Loading branch information
1 parent
e645f63
commit 1ef668b
Showing
2 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters