Lines Matching refs:txtRec
174 #define txtRec ((TXTRecordRefRealType*)txtRecord) macro
190 txtRec->buffer = buffer; in TXTRecordCreate()
191 txtRec->buflen = buffer ? bufferLen : (uint16_t)0; in TXTRecordCreate()
192 txtRec->datalen = 0; in TXTRecordCreate()
193 txtRec->malloced = 0; in TXTRecordCreate()
198 if (txtRec->malloced) free(txtRec->buffer); in TXTRecordDeallocate()
218 if (txtRec->datalen + keyvalsize > txtRec->buflen) in TXTRecordSetValue()
221 unsigned long newlen = txtRec->datalen + keyvalsize; in TXTRecordSetValue()
225 memcpy(newbuf, txtRec->buffer, txtRec->datalen); in TXTRecordSetValue()
226 if (txtRec->malloced) free(txtRec->buffer); in TXTRecordSetValue()
227 txtRec->buffer = newbuf; in TXTRecordSetValue()
228 txtRec->buflen = (uint16_t)(newlen); in TXTRecordSetValue()
229 txtRec->malloced = 1; in TXTRecordSetValue()
231 start = txtRec->buffer + txtRec->datalen; in TXTRecordSetValue()
242 txtRec->datalen += p - start; in TXTRecordSetValue()
253 uint8_t *item = InternalTXTRecordSearch(txtRec->datalen, txtRec->buffer, key, &keylen); in TXTRecordRemoveValue()
256 remainder = (unsigned long)((txtRec->buffer + txtRec->datalen) - (item + itemlen)); in TXTRecordRemoveValue()
259 txtRec->datalen -= itemlen; in TXTRecordRemoveValue()
263 uint16_t DNSSD_API TXTRecordGetLength (const TXTRecordRef *txtRecord) { return(txtRec->datalen); } in TXTRecordGetLength()
264 const void * DNSSD_API TXTRecordGetBytesPtr(const TXTRecordRef *txtRecord) { return(txtRec->buffer)… in TXTRecordGetBytesPtr()