Difference between revisions of "MCSGetData1"

From WikiPrizm
Jump to navigationJump to search
(Created page.)
 
Line 4: Line 4:
 
'''Function declaration:''' int MCSGetData1(int offset, int len_to_copy, void* buffer);
 
'''Function declaration:''' int MCSGetData1(int offset, int len_to_copy, void* buffer);
  
Read '''len_to_copy''' bytes into '''buffer''' from the current item, starting at '''offset'''.
+
Read '''len_to_copy''' bytes into '''buffer''' from the current item in main memory, starting at '''offset'''.
  
 
=== Inputs ===
 
=== Inputs ===

Revision as of 00:29, 8 February 2012

Synopsis

Syscall:

Function declaration: int MCSGetData1(int offset, int len_to_copy, void* buffer);

Read len_to_copy bytes into buffer from the current item in main memory, starting at offset.

Inputs

  • int offset - The offset into the item to read from.
  • int len_to_copy - The amount of data you want to read.
  • void* buffer - The buffer to read into.

Outputs

  • 0 - Success
  • other - Failure

Comments

Call MCSGetDlen2 on the item you want to read from to set it to the current item.

Output could be error codes. Still needs investigation.