Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd committed Nov 4, 2024
1 parent 57446ce commit 7f36922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/rogue/interfaces/stream/Frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class Frame : public rogue::EnableSharedFromThis<rogue::interfaces::stream::Fram
rogue::interfaces::stream::FrameIterator endWrite();

#ifndef NO_PYTHON


//! Python Frame data read function
/** Read data from Frame into passed Python byte array.
Expand All @@ -353,7 +353,7 @@ class Frame : public rogue::EnableSharedFromThis<rogue::interfaces::stream::Fram
* Exposed as getMemoryview() to Python
*/
boost::python::object getMemoryviewPy();


//! Python Frame data write function
/** Write data into from Frame from passed Python byte array.
Expand Down
6 changes: 3 additions & 3 deletions src/rogue/interfaces/stream/Frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ void ris::Frame::readPy(boost::python::object p, uint32_t offset) {
bp::object ris::Frame::getBytearrayPy(uint32_t offset, uint32_t count) {
// Get the size of the frame
uint32_t size = getPayload();

if (count == 0) {
count = size - offset;
}


// Create a Python bytearray to hold the data
bp::object byteArray(bp::handle<>(PyByteArray_FromStringAndSize(nullptr, count)));
Expand Down Expand Up @@ -408,7 +408,7 @@ bp::object ris::Frame::getMemoryviewPy() {
}

// Return the memoryview as a Python object
return bp::object(bp::handle<>(memoryView));
return bp::object(bp::handle<>(memoryView));

}

Expand Down

0 comments on commit 7f36922

Please sign in to comment.