Contents

TXTRecordGetBytesPtr(_:)

Allows you to retrieve a pointer to the raw bytes within a TXTRecordRef.

Declaration

func TXTRecordGetBytesPtr(_ txtRecord: UnsafePointer<TXTRecordRef>!) -> UnsafeRawPointer!

Parameters

  • txtRecord:

    A TXTRecordRef initialized by calling TXTRecordCreate().

Return Value

Returns a pointer to the raw bytes inside the TXTRecordRef which you can pass directly to DNSServiceRegister(_:_:_:_:_:_:_:_:_:_:_:_:) or to DNSServiceUpdateRecord(_:_:_:_:_:_:).

See Also

TXT Record Construction Functions