593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
|
@throw [OFInvalidArgumentException exception];
length = strlen(types);
if (length == 0)
@throw [OFInvalidFormatException exception];
_types = [self allocMemoryWithSize: length + 1];
memcpy(_types, types, length);
_typesPointers = [[OFMutableData alloc]
initWithItemSize: sizeof(char *)];
_offsets = [[OFMutableData alloc]
initWithItemSize: sizeof(size_t)];
|
|
|
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
|
@throw [OFInvalidArgumentException exception];
length = strlen(types);
if (length == 0)
@throw [OFInvalidFormatException exception];
_types = of_malloc(length + 1, 1);
memcpy(_types, types, length);
_typesPointers = [[OFMutableData alloc]
initWithItemSize: sizeof(char *)];
_offsets = [[OFMutableData alloc]
initWithItemSize: sizeof(size_t)];
|
667
668
669
670
671
672
673
674
675
676
677
678
679
680
|
}
return self;
}
- (void)dealloc
{
[_typesPointers release];
[_offsets release];
[super dealloc];
}
- (size_t)numberOfArguments
|
>
|
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
|
}
return self;
}
- (void)dealloc
{
free(_types);
[_typesPointers release];
[_offsets release];
[super dealloc];
}
- (size_t)numberOfArguments
|