Changes

Jump to navigation Jump to search
Line 661: Line 661:  
=== CreateStorage ===
 
=== CreateStorage ===
 
Takes an input u64 for the storage size, returns an [[#IStorage]].
 
Takes an input u64 for the storage size, returns an [[#IStorage]].
 +
 +
This allocates a buffer with the specified size which can then be accessed via [[#IStorageAccessor]].
    
=== CreateTransferMemoryStorage ===
 
=== CreateTransferMemoryStorage ===
Line 666: Line 668:     
The user-process creates the TransferMemory with permissions=0.
 
The user-process creates the TransferMemory with permissions=0.
 +
 +
The TransferMemory is mapped, which can then be accessed via [[#IStorageAccessor]]. The input bool controls whether writing to the storage is allowed: [[#Write]] will throw an error if this flag is not set.
    
=== CreateHandleStorage ===
 
=== CreateHandleStorage ===

Navigation menu