Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SingleType (0.12 sec)

  1. internal/pubsub/mask.go

    	return t&other == other
    }
    
    // Overlaps returns whether *any* flags in t overlaps with other.
    func (t Mask) Overlaps(other Mask) bool {
    	return t&other != 0
    }
    
    // SingleType returns whether t has a single type set.
    func (t Mask) SingleType() bool {
    	return bits.OnesCount64(uint64(t)) == 1
    }
    
    // FromUint64 will set a mask to the uint64 value.
    func (t *Mask) FromUint64(m uint64) {
    	*t = Mask(m)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 1.3K bytes
    - Viewed (0)
Back to top