Home | History | Annotate | Download | only in Misc

Lines Matching full:numbytes

629     CFIndex numBytes = CFURLGetBytes((CFURLRef)self, buffer, 2048);
630 if (numBytes == -1) {
631 numBytes = CFURLGetBytes((CFURLRef)self, NULL, 0);
632 urlBytes = static_cast<UInt8*>(malloc(numBytes));
633 CFURLGetBytes((CFURLRef)self, urlBytes, numBytes);
666 CFIndex numBytes = CFURLGetBytes((CFURLRef)self, buffer, 2048);
667 if (numBytes == -1) {
668 numBytes = CFURLGetBytes((CFURLRef)self, NULL, 0);
669 urlBytes = static_cast<UInt8*>(malloc(numBytes));
670 CFURLGetBytes((CFURLRef)self, urlBytes, numBytes);
674 if (numBytes < range.location)
676 if (numBytes < range.location + range.length)
677 range.length = numBytes - range.location;
679 memmove(urlBytes + range.location, urlBytes + range.location + range.length, numBytes - range.location + range.length);
681 NSURL *result = (NSURL *)CFMakeCollectable(CFURLCreateWithBytes(NULL, urlBytes, numBytes - range.length, kCFStringEncodingUTF8, NULL));
683 result = (NSURL *)CFMakeCollectable(CFURLCreateWithBytes(NULL, urlBytes, numBytes - range.length, kCFStringEncodingISOLatin1, NULL));