// BroadcastBinaryOthers broadcasts a binary message to all sessions except session s.
483316
func (m *Melody) BroadcastBinaryOthers(msg []byte, s *Session) error {
	return m.BroadcastBinaryFilter(msg, func(q *Session) bool {
		return s != q
	})
}
249951
func (p DLChannelAnsPayload) MarshalBinary() ([]byte, error) {
	var b byte
	if p.ChannelFrequencyOK {
		b = b ^ 1
	}
	if p.UplinkFrequencyExists {
		b = b ^ (1 << 1)
	}
	return []byte{b}, nil
}
559637
func (m *StatusResponseContainerRuntime) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
1296510
func (m *ProxyStatus) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
328977
func (m *ControllerStatusConfiguration) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
390410
func (p PingSlotChannelAnsPayload) MarshalBinary() ([]byte, error) {
	var b byte
	if p.ChannelFrequencyOK {
		b = (1 << 0)
	}
	if p.DataRateOK {
		b = b | (1 << 1)
	}

	return []byte{b}, nil
}
130401
func (m *IdentityEndpoints) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
673811
func (i IPs) MarshalBinary() ([]byte, error) {
	b := uio.NewBigEndianBuffer(make([]byte, 0, net.IPv4len*len(i)))
	for _, ip := range i {
		b.WriteBytes(ip.To4())
	}
	return b.Data(), nil
}
685408
func (m *EndpointConfigurationStatus) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
630239
func (m *MessageForwardingStatistics) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
1085259
func (m *ExtUsersArrayFlatItems0) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
1012071
func (m *SwaggerNotReadyStatus) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
412711
func (p RejoinParamSetupAnsPayload) MarshalBinary() ([]byte, error) {
	var out byte
	if p.TimeOK {
		out = 1
	}

	return []byte{out}, nil
}
465993
func (m *SwaggerJwkUpdateSetKey) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
190231
func (p McClassBSessionReqPayload) MarshalBinary() ([]byte, error) {
	b := make([]byte, p.Size())

	// McGroupIDHeader
	b[0] = p.McGroupIDHeader.McGroupID & 0x03 // first 2 bits

	// SessionTime
	binary.LittleEndian.PutUint32(b[1:5], p.SessionTime)

	// TimeOutPeriodicity
	b[5] = p.TimeOutPeriodicity.TimeOut & 0x1f // first 4 bits
	b[5] |= (p.TimeOutPeriodicity.Periodicity & 0x17) << 4

	// DLFrequency
	if p.DLFrequency%100 != 0 {
		return nil, errors.New("lorawan/applayer/multicastsetup: DLFrequency must be a multiple of 100")
	}
	dlFreqB := make([]byte, 4)
	binary.LittleEndian.PutUint32(dlFreqB, p.DLFrequency/100)
	copy(b[6:9], dlFreqB[:3])

	// DR
	b[9] = p.DR

	return b, nil
}
228916
func (m *SwaggeruserinfoResponsePayload) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
596382
func (p McGroupStatusReqPayload) MarshalBinary() ([]byte, error) {
	b := make([]byte, p.Size())
	for i, mask := range p.CmdMask.RegGroupMask {
		if mask {
			b[0] |= (1 << uint8(i))
		}
	}
	return b, nil
}