add MemoryBlock::Copy function.
This commit is contained in:
parent
b8c76fea90
commit
18026cedf8
@ -34,6 +34,7 @@ namespace hgl
|
|||||||
virtual bool Write (const uint64 target,MemoryBlock *source,const uint64 offset,const uint64 size);
|
virtual bool Write (const uint64 target,MemoryBlock *source,const uint64 offset,const uint64 size);
|
||||||
virtual bool Exchange(const uint64 target,const uint64 source,const uint64 size);
|
virtual bool Exchange(const uint64 target,const uint64 source,const uint64 size);
|
||||||
virtual void Move (const uint64 target,const uint64 source,const uint64 size);
|
virtual void Move (const uint64 target,const uint64 source,const uint64 size);
|
||||||
|
virtual void Copy (const uint64 target,const uint64 source,const uint64 size);
|
||||||
};//class MemoryBlock:public AbstractDataBlock
|
};//class MemoryBlock:public AbstractDataBlock
|
||||||
}//namespace hgl
|
}//namespace hgl
|
||||||
#endif//HGL_MEMORY_BLOCK_INCLUDE
|
#endif//HGL_MEMORY_BLOCK_INCLUDE
|
||||||
|
@ -75,4 +75,11 @@ namespace hgl
|
|||||||
Get(source),
|
Get(source),
|
||||||
size);
|
size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MemoryBlock::Copy (const uint64 target,const uint64 source,const uint64 size)
|
||||||
|
{
|
||||||
|
memcpy( Get(target),
|
||||||
|
Get(source),
|
||||||
|
size);
|
||||||
|
}
|
||||||
}//namespace hgl
|
}//namespace hgl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user