NSCopyMemoryPages
メモリーブロックをコピーします
void NSCopyMemoryPages ( const void * source , void * destination , unsigned int byteCount );
解説
メモリーブロックをコピーします。
返り値
引数
( const void * )source
( void * )destination
( unsigned int )byteCount
フレームワーク
Foundation
クラス
NSCopyMemoryPages
Function
使用可能
10.0
参照
NSAllocateMemoryPages
NSDeallocateMemoryPages
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSRect source = NSMakeRect(1.2,3.4,5.6,7.8); NSRect destination; NSCopyMemoryPages(&source, &destination, sizeof(NSRect)); NSLog(@"%.1f,%.1f,%.1f,%.1f",destination.origin.x,destination.origin.y, destination.size.width,destination.size.height); } @end