-
Notifications
You must be signed in to change notification settings - Fork 64
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
Null-terminated string #15
Comments
Any problems with null-terminated strings? |
Hmmm, I thought it was not supported, how would be the syntax on that? For example I have a null terminated string on a buffer, or a string that is fixed on an actual length no null terminators? How would both work? |
see source - it uses standard NodeJS Buffer.toString Method and slices string to zero character. https://github.com/xdenser/node-struct/blob/master/index.js#L92 |
So it uses null to terminate the string but if it won't find the null terminator it will use the full length? |
wrong: correct: |
No Null-terminating string support?
The text was updated successfully, but these errors were encountered: