MCPcopy Create free account
hub / github.com/BabitMF/bmf / getCurrent

Method getCurrent

bmf/hmp/src/core/stream.cpp:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 optional<Stream> getCurrent() const override {
62 if (!sCurrentStream) {
63 return Stream(
64 makeRefPtr<CPUStream>()); // get default stream by default
65 } else {
66 return Stream(sCurrentStream);
67 }
68 }
69
70 Stream create(uint64_t flags = 0) override {
71 return Stream(makeRefPtr<CPUStream>(flags));

Callers 1

current_streamFunction · 0.45

Calls 1

StreamFunction · 0.50

Tested by

no test coverage detected