Reference

RDLP_MemMove(3)

PalmOS memory-manipulation functions

Part of RDLP_MemHandleNew(3).

NAME

RDLP_MemHandleNew, RDLP_MemMove, RDLP_MemReadable – PalmOS memory-manipulation functions

LIBRARY

libpconn

SYNOPSIS

#include <palm.h>

#include <pconn/pconn.h>

int

RDLP_MemHandleNew(PConnection *pconn, udword size);

int

RDLP_MemMove(PConnection *pconn, ubyte *dst, const udword src, const udword len);

int

RDLP_MemReadable(PConnection *pconn, udword addr);

DESCRIPTION

Presumably, RDLP_MemHandleNew allocates a new memory chunk of size bytes, and returns a pointer to it.

RDLP_MemMove reads a region of memory, and returns it.

dst is a pointer to a buffer that will be filled in with the desired memory region.

src is the starting address of the region to read.

len specifies the length of the region to read.

Presumably RDLP_MemReadable tests whether a given memory address exists and is readable.

RETURN VALUE

These functions all return the contents of the Palm's D0 register after the function call, or a negative value in case of error.

SEE ALSO

libpconn(3), DlpRPC(3).

BUGS

RDLP_MemHandleNew and RDLP_MemReadable are untested.