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

Added support for creating MemoryBuffer from a byte array #201

Merged
merged 1 commit into from
Jan 16, 2021

Conversation

smaillet
Copy link
Member

Resolves #196

  • Added new constructor to Memory Buffer
  • Added new tests for the new MemoryBuffer constructor
  • Updated YamalArrayMarshalInfo.TransformType to convert simpler types to signed/unsigned bytes (and bools) based on marshaling attribute
  • Added debug messages for detection of char* without any marshaling information. (Most are fine with default treatment as string, however this allows finding others more easily then searching headers)
  • Added use of CommandLineParser library to bindings generator to provide standard usage help and allow for optional params (including new diagnostics level so it is an actual parameter now)
  • Added suppression of CS rule/suggestion to "simplify" an if statement to a multi level conditional expression. The result of applying the rule is anything but simpler.
  • Converted some checks in BitCodeModule to use conditional and throw expressions

Resolves UbiquityDotNET#196
---
* Added new constructor to Memory Buffer
* Added new tests for the new MemoryBuffer constructor
* Updated YamalArrayMarshalInfo.TransformType to convert simpler types to signed/unsigned bytes (and bools) based on marshaling attribute
* Added debug messages for detection of char* without any marshaling information. (Most are fine with default treatment as string, however this allows finding others more easily then searching headers)
* Added use of CommandLineParser library to bindings generator to provide standard usage help and allow for optional params (including new diagnostics level so it is an actual parameter now)
* Added suppression of CS rule/suggestion to "simplify" and in statement to a multi level conditional expression. The result is anything but simpler.
* Converted some checks in BitCodeModule to use conditional and throw expressions
@smaillet smaillet merged commit 470f608 into UbiquityDotNET:develop Jan 16, 2021
@smaillet smaillet deleted the MemoryBuffferFromArray branch January 16, 2021 22:00
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.

[Feature] - Create MemoryBuffer from byte array
1 participant