MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / hasCapability

Method hasCapability

Engine/source/core/stream/memStream.cpp:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool MemStream::hasCapability(const Capability in_cap) const
96{
97 // Closed streams can't do anything
98 //
99 if (getStatus() == Closed)
100 return false;
101
102 U32 totalCaps = U32(Stream::StreamPosition) | mInstCaps;
103
104 return (U32(in_cap) & totalCaps) != 0;
105}
106
107U32 MemStream::getPosition() const
108{

Callers 1

initMethod · 0.45

Calls 1

U32Enum · 0.70

Tested by

no test coverage detected