Home | History | Annotate | Download | only in Misc

Lines Matching refs:buffer

252     // Maybe we should implement this using a character buffer instead?
452 UInt8 *buffer = (UInt8 *)malloc(URL_BYTES_BUFFER_LENGTH);
453 CFIndex bytesFilled = CFURLGetBytes((CFURLRef)self, buffer, URL_BYTES_BUFFER_LENGTH);
456 buffer = (UInt8 *)realloc(buffer, bytesToAllocate);
457 bytesFilled = CFURLGetBytes((CFURLRef)self, buffer, bytesToAllocate);
461 // buffer is adopted by the NSData
462 NSData *data = [NSData dataWithBytesNoCopy:buffer length:bytesFilled freeWhenDone:YES];
557 // Shift current string to the end of the buffer
558 // then we will copy back bytes to the start of the buffer
628 UInt8 *urlBytes, buffer[2048];
629 CFIndex numBytes = CFURLGetBytes((CFURLRef)self, buffer, 2048);
635 urlBytes = buffer;
641 if (urlBytes != buffer) free(urlBytes);
665 UInt8 buffer[2048];
666 CFIndex numBytes = CFURLGetBytes((CFURLRef)self, buffer, 2048);
672 urlBytes = buffer;
685 if (urlBytes != buffer)
730 UInt8 *buffer = static_buffer;
731 CFIndex bytesFilled = CFURLGetBytes((CFURLRef)self, buffer, URL_BYTES_BUFFER_LENGTH);
734 buffer = static_cast<UInt8 *>(malloc(bytesToAllocate));
735 bytesFilled = CFURLGetBytes((CFURLRef)self, buffer, bytesToAllocate);
742 char c = buffer[range.location + i];
745 buffer[range.location + i] = lower;
751 ? (NSURL *)WebCFAutorelease(CFURLCreateAbsoluteURLWithBytes(NULL, buffer, bytesFilled, kCFStringEncodingUTF8, nil, YES))
754 if (buffer != static_buffer) {
755 free(buffer);
888 // get buffer
1020 static BOOL allCharactersInIDNScriptWhiteList(const UChar *buffer, int32_t length)
1027 U16_NEXT(buffer, i, length, c)
1053 static BOOL allCharactersAllowedByTLDRules(const UChar* buffer, int32_t length)
1056 if (buffer[length - 1] == '.')
1060 && buffer[length - 3] == '.'
1061 && buffer[length - 2] == 0x0440 // CYRILLIC SMALL LETTER ER
1062 && buffer[length - 1] == 0x0444) // CYRILLIC SMALL LETTER EF
1066 UChar ch = buffer[i];