Showing changes from revision #2 to #3:
Added | Removed | Changed
Entry | |
---|---|
R0 | Buffer’s |
R1 | Size of buffer to be created |
R2 | Preferred handle for the buffer, or -1 to get the Buffer Manager to generate one |
Exit | |
---|---|
R0 | Buffer handle |
This call claims an area of the RMA and registers it as a buffer. It can hold R1 – 1 bytes at most.
If R2 <> – 1, the given number is checked for uniqueness, if it already exists, a new one is generated.
Note that you do not need any complicated calculations to write data into the buffer – it’s a simply a block of memory. Get the address with Buffer_GetInfo and write to the buffer.