| 11 | namespace thread |
| 12 | { |
| 13 | class Scratch final |
| 14 | { |
| 15 | using ReleaseFunc = void(*)(cpp::marshal::View<uint8_t>); |
| 16 | |
| 17 | int* count; |
| 18 | ReleaseFunc release; |
| 19 | |
| 20 | public: |
| 21 | static Scratch alloc(int bytes); |
| 22 | |
| 23 | cpp::marshal::View<uint8_t> view; |
| 24 | |
| 25 | Scratch(int* _count, cpp::marshal::View<uint8_t> _view, ReleaseFunc _release); |
| 26 | Scratch(const Scratch& other); |
| 27 | |
| 28 | ~Scratch(); |
| 29 | |
| 30 | Scratch& operator=(const Scratch& other); |
| 31 | }; |
| 32 | } |
| 33 | } |