Skip to content

Commit

Permalink
Copy buffer
Browse files Browse the repository at this point in the history
Summary: copy buffer sent from Python client to C++.

Reviewed By: ahageali

Differential Revision: D61029182

fbshipit-source-id: ba28d17cddee6c1accd33516a73079ef252fff30
  • Loading branch information
Ayberk Kanberoglu authored and facebook-github-bot committed Aug 9, 2024
1 parent 246d102 commit b3d25a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions folly/python/iobuf.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ cdef extern from "folly/io/IOBuf.h" namespace "folly":

cdef extern from "folly/io/IOBuf.h" namespace "folly::IOBuf":
unique_ptr[cIOBuf] wrapBuffer(const_uchar* buf, uint64_t capacity)
unique_ptr[cIOBuf] copyBuffer(const_uchar* buf, uint64_t capacity)
unique_ptr[cIOBuf] createChain(size_t totalCapacity, size_t maxBufCapacity)


Expand Down

0 comments on commit b3d25a4

Please sign in to comment.