You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Again, this is an issue to help me with the scenario of streaming without really implementing streaming.
I want a type, that when encountered, will stop parsing completely, and will give me the parts of the object already parsed, and the offset to the next point in the buffer.
For encoding, you can specify the type it will encode as.
This is to avoid saving a really big type, accepted by streaming for example, into memory completely.
Unlike #27, there doesn't need to be a resume login, let me as the client handle it.
In this case I think the type you're looking for is msgspec.Raw (https://jcristharif.com/msgspec/usage.html#raw)? In this case, it returns a Raw object that provides a memoryview (not copy) into the original buffer, but doesn't decode that buffer immediately. This would let you avoid decoding Huge.huge immediately and handle it however you want to.
Again, this is an issue to help me with the scenario of streaming without really implementing streaming.
I want a type, that when encountered, will stop parsing completely, and will give me the parts of the object already parsed, and the offset to the next point in the buffer.
For encoding, you can specify the type it will encode as.
This is to avoid saving a really big type, accepted by streaming for example, into memory completely.
Unlike #27, there doesn't need to be a resume login, let me as the client handle it.
What I ask for is something like this:
The text was updated successfully, but these errors were encountered: