Просмотр исходного кода

[runtime/vm_runtime] comment copy_to_memory

ertosns 2 лет назад
Родитель
Сommit
c83ad39e2b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/runtime/vm_runtime.rs

+ 1 - 1
src/runtime/vm_runtime.rs

@@ -555,7 +555,7 @@ impl Runtime {
 
 
     /// Copy payload to the start of the memory
     /// Copy payload to the start of the memory
     fn copy_to_memory(&self, payload: &[u8]) -> Result<()> {
     fn copy_to_memory(&self, payload: &[u8]) -> Result<()> {
-        // TODO: Maybe should write to first zero memory and return the pointer/offset?
+        // Payload is copied to index 0.
         // Get the memory view
         // Get the memory view
         let env = self.ctx.as_ref(&self.store);
         let env = self.ctx.as_ref(&self.store);
         let memory_view = env.memory_view(&self.store);
         let memory_view = env.memory_view(&self.store);