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

Change buffer type for sftp read and write functions from string to byte array #13

Merged
merged 2 commits into from
Oct 13, 2024

Conversation

logmanoriginal
Copy link
Owner

This changes the data type of the 'buffer' terminals on the SFTP read and write functions from string to byte array as these functions can be used to read/write arbitrary binary data and are not limited to strings.

This is a breaking change. Callers must update their code to convert from/to string using the 'Byte Array To String' and 'String To Byte Array' functions, respectively.

This changes the data type of the 'buffer' terminals on the SFTP read
and write functions from string to byte array as these function can be
used to read/write arbitrary binary data and are not limited to strings.

This is a breaking change. Callers must update their code to convert
from/to string using the 'Byte Array To String' and 'String To Byte
Array' functions, respectively.

The VI icons were updated to reflect this change and now have a 'binary'
glyph.

All examples and tests were updated to convert from/to string as needed.
This changes the implementation for libssh2_sftp_read to directly read
data into a byte array instead of manually reserving space in memory and
then moving it to the array with MoveBlock.
@logmanoriginal logmanoriginal merged commit 965324d into main Oct 13, 2024
1 check passed
@logmanoriginal logmanoriginal deleted the sftp_rw_binary branch October 13, 2024 07:16
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