HasFlags tests whether the given flags are set.
(subset EncodeFlags)
| 47 | |
| 48 | // HasFlags tests whether the given flags are set. |
| 49 | func (f EncodeFlags) HasFlags(subset EncodeFlags) bool { |
| 50 | return f&subset == subset |
| 51 | } |
| 52 | |
| 53 | const ( |
| 54 | // EncNoFlags indicates nothing special should happen while encoding. |
no outgoing calls
no test coverage detected