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

Wrong serialization of empty strings (length==0) in typescript #166

Closed
AbeniMatteo opened this issue Jun 30, 2023 · 1 comment
Closed

Wrong serialization of empty strings (length==0) in typescript #166

AbeniMatteo opened this issue Jun 30, 2023 · 1 comment

Comments

@AbeniMatteo
Copy link

C# .WriteString()
TS .writeString() <- problem here
TS .readString()

Repro:

let writer = new MemoryPackWriter(32);
writer.writeString("");

let reader = new MemoryPackReader(writer.toArray().buffer);
console.assert(reader.readString() === "");
@neuecc
Copy link
Member

neuecc commented Jul 3, 2023

thanks, I'll fix it!

@neuecc neuecc closed this as completed in f6d05e6 Nov 9, 2023
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

No branches or pull requests

2 participants