Skip to content

Conversation

@failfmi
Copy link
Collaborator

@failfmi failfmi commented Mar 23, 2023

Detailed description:

  • directly initialise bytes.Buffer with the slice from ptr & size instead of copying it with .Write(). A > 512 KB slice does not copy properly, works by chunks.

Which issue(s) this PR fixes:
Fixes #77

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

@failfmi failfmi requested a review from radkomih March 23, 2023 14:28
@failfmi failfmi self-assigned this Mar 23, 2023
@failfmi failfmi merged commit 8b36719 into master Mar 23, 2023
@failfmi failfmi deleted the fix/buffer-initialisation branch March 23, 2023 15:31
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.

passing large bytes between host & runtime

3 participants