Skip to content

Conversation

@myd7349
Copy link
Contributor

@myd7349 myd7349 commented Jan 28, 2026

The documentation for lsl_get_channel_bytes states that it returns 0 for the string type (cft_string), but in practice this is not the case:

/// Number of bytes occupied by a channel (0 for string-typed channels).
extern LIBLSL_C_API int32_t lsl_get_channel_bytes(lsl_streaminfo info);

This patch fixes the issue by returning 0 for the string type.

@myd7349 myd7349 changed the title Fix channel_bytes of string type Fix lsl_get_channel_bytes to return 0 for cft_string as documented Jan 28, 2026
@myd7349 myd7349 marked this pull request as ready for review January 28, 2026 14:13
@myd7349 myd7349 marked this pull request as draft January 28, 2026 14:39
@myd7349
Copy link
Contributor Author

myd7349 commented Jan 28, 2026

The endianness unit test appears to have failed. I will try to fix this issue.

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

Successfully merging this pull request may close these issues.

1 participant