瀏覽代碼

README.md: fix `set_prog()` documentation for struct EbpfVmFixedMbuff

Fixes: 8c7c26d4713a308605309b43646cc6779b5e51b8
Quentin Monnet 8 年之前
父節點
當前提交
bf130636ea
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -152,7 +152,13 @@ each time the program is executed. Other structs do not use this mechanism and
 do not need those offsets.
 
 ```rust
+// for struct EbpfVmMbuff, struct EbpfVmRaw and struct EbpfVmRawData
 pub fn set_prog(&mut self, prog: &'a std::vec::Vec<u8>)
+
+// for struct EbpfVmFixedMbuff
+pub fn set_prog(&mut self, prog: &'a std::vec::Vec<u8>,
+                data_offset: usize,
+                data_end_offset: usize)
 ```
 
 You can use for example `my_vm.set_prog(my_program);` to change the loaded