removed requirement to specify memory operand size
and allow injecting external target buffer.