fig4_pseudo-code-of-IOAccelContext2-clientMemoryForType-function