MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / Scratch

Class Scratch

include/hx/thread/Scratch.hpp:13–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 1

allocMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected