SetWorkMemory

Sets memory used in library

int SetWorkMemory(
        const BYTE      *addr,
        const DWORD     size
)

Parameters
*addr
Starting address of the memory space
size
Available memory size

Return Value
NORMAL(0): Successful completion
ERROR(-1): Unsuccessful completion (when specifying NULL)

Description
Notifies the address of the memory space which is used in measurement library.
Before calling this library, you need to allocate the space for the size obtained by "refGetMemorySize Gets the size of used memory in the library" and pass its starting address.
If you set NULL to the address, the library discards the space which is currently allocated, and returns to the start-up state where nothing is allocated. In this case, ERROR is returned.

Notes