Skip to content

Instantly share code, notes, and snippets.

@rgs1
Created July 1, 2022 02:10
Show Gist options
  • Save rgs1/18f5d2df81408d8090209154ae806c60 to your computer and use it in GitHub Desktop.
Save rgs1/18f5d2df81408d8090209154ae806c60 to your computer and use it in GitHub Desktop.
Buffer::OwnedImpl buffer;
auto result = bio_io_handle(b)->read(buffer, outl);
/* TODO: avoid copying */
buffer.copyOut(0, buffer.length(), out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment