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

Add concept of String in SwIPC #24

Open
roblabla opened this issue Mar 22, 2018 · 1 comment
Open

Add concept of String in SwIPC #24

roblabla opened this issue Mar 22, 2018 · 1 comment

Comments

@roblabla
Copy link
Member

roblabla commented Mar 22, 2018

SwIPC has no concept of Strings, and simply uses bytes or array or buffer whenever it needs one. This is extremely annoying, because rust separates those two concepts at the type level.

My first naive attempt at adding string support was quickly met with many difficulties, most notably that array/buffer expect sized raw data.

Upstream tracking issue: reswitched/SwIPC#28

@roblabla
Copy link
Member Author

Something I found out recently: bitmask 0x10 in the IPC "type" means "Null-terminated string"

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

1 participant