Types
Datatypes used by opdis.
More...
Detailed Description
Datatypes used by opdis.
Define Documentation
Typedef Documentation
A virtual memory (load) address.
Function Documentation
Allocate an opdis buffer.
Allocates an opdis_buffer_t of specified size. The buffer contents are initialized to zero.
- Parameters:
-
| size | Size of buffer in bytes. |
| addr | Load address (vma) of buffer or 0. |
- Returns:
- The allocated opdis buffer.
- See also:
- opdis_buf_read opdis_buf_free
Fill an opdis buffer from a memory location.
- Parameters:
-
| buf | Opdis buffer to fill. |
| offset | Offset in buf to copy to. |
| src | Memory location to copy from. |
| len | Number of bytes to copy from src to buf. |
- Returns:
- Number of bytes copied from src to buf.
Free an opdis buffer.
- Parameters:
-
| buf | Opdis buffer to free. |
- See also:
- opdis_buf_alloc
Allocate an opdis buffer containing contents of file.
Allocates an opdis buffer and fills it with the contents of the file. This reads size bytes from the current position in f, or from the current position to the end of the file if size is 0.
- Parameters:
-
| f | The file to read from. |
| size | The number of bytes to read from the file, or 0. |
| addr | Load address (vma) of buffer or 0. |
- Returns:
- The allocated opdis buffer.
- See also:
- opdis_buf_alloc opdis_buf_free
- Note:
- The current position of the file will be increased by size bytes upon return.
Set the VMA for a buffer.
- Parameters:
-
| buf | The opdis buffer. |
| addr | Load address (vma) of buffer or 0. |