Lines Matching full:datalength
6 void testNSDatafFreeWhenDoneNoError(NSUInteger dataLength) {
8 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength];
11 void testNSDataFreeWhenDoneYES(NSUInteger dataLength) {
13 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no-warning
16 void testNSDataFreeWhenDoneYES2(NSUInteger dataLength) {
18 NSData *nsdata = [[NSData alloc] initWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no-warning
21 void testNSDataFreeWhenDoneYES2_with_wrapper(NSUInteger dataLength) {
23 Wrapper *nsdata = [[Wrapper alloc] initWithBytesNoCopy:data length:dataLength]; // no-warning
26 void testNSStringFreeWhenDoneYES3(NSUInteger dataLength) {
28 NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8StringEncoding freeWhenDone:1];
31 void testNSStringFreeWhenDoneYES4(NSUInteger dataLength) {
33 NSString *nsstr = [[NSString alloc] initWithCharactersNoCopy:data length:dataLength freeWhenDone:1];
37 void testNSStringFreeWhenDoneYES(NSUInteger dataLength) {
39 NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8StringEncoding freeWhenDone:1]; // no-warning
42 void testNSStringFreeWhenDoneYES2(NSUInteger dataLength) {
44 NSString *nsstr = [[NSString alloc] initWithCharactersNoCopy:data length:dataLength freeWhenDone:1]; // no-warning
48 void testNSDataFreeWhenDoneNO(NSUInteger dataLength) {
50 NSData *nsdata = [NSData dataWithBytesNoCopy:data length:dataLength freeWhenDone:0]; // expected-warning{{leak}}
53 void testNSDataFreeWhenDoneNO2(NSUInteger dataLength) {
55 NSData *nsdata = [[NSData alloc] initWithBytesNoCopy:data length:dataLength freeWhenDone:0]; // expected-warning{{leak}}
59 void testNSStringFreeWhenDoneNO(NSUInteger dataLength) {
61 NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8StringEncoding freeWhenDone:0]; // expected-warning{{leak}}
64 void testNSStringFreeWhenDoneNO2(NSUInteger dataLength) {
66 NSString *nsstr = [[NSString alloc] initWithCharactersNoCopy:data length:dataLength freeWhenDone:0]; // expected-warning{{leak}}
123 void testNSDatafFreeWhenDone(NSUInteger dataLength) {