TXTRecordGetLength(_:)
Allows you to determine the length of the raw bytes within a TXTRecordRef.
Declaration
func TXTRecordGetLength(_ txtRecord: UnsafePointer<TXTRecordRef>!) -> UInt16Parameters
- txtRecord:
A TXTRecordRef initialized by calling TXTRecordCreate().
Return Value
Returns the size of the raw bytes inside a TXTRecordRef which you can pass directly to DNSServiceRegister(_:_:_:_:_:_:_:_:_:_:_:_:) or to DNSServiceUpdateRecord(_:_:_:_:_:_:). Returns 0 if the TXTRecordRef is empty.