| 25 | |
| 26 | namespace LIEF::py { |
| 27 | class PyIOStream : public VectorStream { |
| 28 | public: |
| 29 | static result<PyIOStream> from_python(nb::object object); |
| 30 | PyIOStream() = delete; |
| 31 | |
| 32 | PyIOStream(const PyIOStream&) = delete; |
| 33 | PyIOStream& operator=(const PyIOStream&) = delete; |
| 34 | |
| 35 | PyIOStream(PyIOStream&& other); |
| 36 | PyIOStream& operator=(PyIOStream&& other); |
| 37 | |
| 38 | ~PyIOStream() override; |
| 39 | |
| 40 | protected: |
| 41 | PyIOStream(nb::object io, std::vector<uint8_t> data); |
| 42 | nb::object io_; |
| 43 | }; |
| 44 | } |
| 45 | |
| 46 | #endif |