CopyFrom() public method

Copies the data in data into this MemoryHolder.
public CopyFrom ( IntPtr source, IntPtr size ) : void
source System.IntPtr
size System.IntPtr
return void
コード例 #1
0
ファイル: ModuleOps.cs プロジェクト: kayur/ironpython
        public static object CreateMemoryHolder(IntPtr data, int size)
        {
            var res = new MemoryHolder(size);

            res.CopyFrom(data, new IntPtr(size));
            return(res);
        }
コード例 #2
0
ファイル: ModuleOps.cs プロジェクト: nieve/ironruby
 public static object CreateMemoryHolder(IntPtr data, int size) {
     var res = new MemoryHolder(size);
     res.CopyFrom(data, new IntPtr(size));
     return res;
 }