-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed from internal allocation of buffers to external for better me…
…mory control (#35) * pass buffers as spans to allow for external placement of buffers and allow difference read and write buffer sizes * removing cmake default python buffer size * updated readme * moved using declarations out of Hdlcpp class and into Hdlcpp namespace replaced std::span with using declarations in unit test, testing with both std::array and std::vector as buffers
- Loading branch information
1 parent
f0df7fa
commit eb97c1c
Showing
7 changed files
with
70 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
set(MODULE_NAME phdlcpp) | ||
|
||
if(NOT DEFINED PYTHON_HDLCPP_BUFFER_SIZE) | ||
set(PYTHON_HDLCPP_BUFFER_SIZE 256) | ||
endif() | ||
|
||
pybind11_add_module(${MODULE_NAME} Phdlcpp.cpp) | ||
target_compile_definitions(${MODULE_NAME} PRIVATE -DPYTHON_HDLCPP_BUFFER_SIZE=${PYTHON_HDLCPP_BUFFER_SIZE}) | ||
install(TARGETS ${MODULE_NAME} LIBRARY DESTINATION /usr/lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters