| 93 | } |
| 94 | |
| 95 | bool 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 | |
| 107 | U32 MemStream::getPosition() const |
| 108 | { |