GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Expose serialization api by BadSingleton · Pull Request #2336 · pythonnet/pythonnet Conversation
|
|
@lostmsu any notes? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Add some tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
BTW, what's your interest in this functionality working? Cause if there's none, I think we should consider just bumping version to 4.x and dropping domain reload support altogether. Do you know anyone in Unity who stills works on it? There's been no communication for a while. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Superseding/closing the previous PR. At this point, considering Unity's public plans, it's not unreasonable to drop this. Unity has their own fork with what was in the previous PR anyway.
I think so. Last I knew of, another team had assumed maintaintership of the package. I'll be sending a few messages see if they are still at Unity/on those projects |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@lostmsu Any more comments? I took the liberty to implement your comments on the formatter factory. P.S.: The current build failures are due to macos-14, I'll adjust the CI in another PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
To close the loop on this, the people I could get in touch with are no longer at Unity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| /// <param name="stream">A MemoryStream that contains the data to be placed in the capsule</param> | ||
| public static void StashSerializationData(string key, MemoryStream stream) | ||
| { | ||
| var data = stream.GetBuffer(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This might have extra data in the end
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What do you mean by extra data? The stream container is longer than the data in it? The code is using Length not Capacity, so it should not be an issue, no?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The problem is that stream.GetBuffer() is really just the internal buffer. The data represented may
index is passed in the constructor)The primitive solution is to use ToArray, but that creates another copy. Since .NET 4.6, there is also a TryGetBuffer API that outputs an ArraySegment containing all necessary information. I'll push a commit with the respective adjustment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6e37568
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.