Index: src/platform.h |
=================================================================== |
--- src/platform.h (revision 13274) |
+++ src/platform.h (working copy) |
@@ -384,6 +384,11 @@ |
// Initialize or resets an embedded VirtualMemory object. |
void Reset(); |
+ void Set(void* address, size_t size) { |
danno
2012/12/28 11:58:37
I don't think you need this, see the comment in sp
haitao.feng
2012/12/28 15:04:54
I am using this to get a virtual memory from code
danno
2012/12/28 15:38:10
You don't need a struct, just store the base and s
|
+ address_ = address; |
+ size_ = size; |
+ } |
+ |
// Returns the start address of the reserved memory. |
// If the memory was reserved with an alignment, this address is not |
// necessarily aligned. The user might need to round it up to a multiple of |