ReturnMemThruPtr vs ReturnArrayThruPtr

160 views
Skip to first unread message

Charles Johnson

unread,
Aug 19, 2022, 11:37:05 AM8/19/22
to ThrowTheSwitch Forums
Maybe I'm being dense, but it isn't obvious to me what the difference between the ReturnMemThruPtr  and ReturnArrayThruPtr mocks.

Can anyone clarify ?

Mark Vander Voord

unread,
Aug 19, 2022, 12:56:11 PM8/19/22
to throwth...@googlegroups.com
Hi Charles:

The answer is "not much". ReturnArrayThruPtr understands the TYPE that is getting passed, and you can specify the number of elements to return. The ReturnMemThruPtr doesn't and you need to specify the number of bytes that should get returned. Otherwise, they provide identical support.

Mark

On Fri, Aug 19, 2022 at 11:37 AM Charles Johnson <charlie...@gmail.com> wrote:
Maybe I'm being dense, but it isn't obvious to me what the difference between the ReturnMemThruPtr  and ReturnArrayThruPtr mocks.

Can anyone clarify ?

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/d3392318-7e8d-45e0-804e-090710949e32n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages