Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

about offset of memory pokers and peekers

0 views
Skip to first unread message

marcomaggi

unread,
Feb 2, 2011, 6:07:02 AM2/2/11
to Mosh Developer Disscus
We have already discussed it, but just to make sure how things are
meant to be with the current version: the POINTER-REF-C-xxx and
POINTER-SET-C-xxx accept an offset argument; is this offset scaled to
the size of the type of value (for example int32_t) or is it an offset
in bytes?

Looking at the code in FFI.h it looks like the offset is scaled.

With the current checkout I am seeing an error while using the FFI in
code I have not touched in an year, which was not present with a
checkout from some months ago; it is maybe related to this.

TIA
--
Marco Maggi

higepon

unread,
Feb 2, 2011, 6:15:49 AM2/2/11
to mosh-develo...@googlegroups.com
Hi.

Sorry, I fixed a bug on ponter-ref, and pointer-set! recently.
You're right, they are scaled by sizeof(type).

https://github.com/higepon/mosh/commit/8574eb227c2d2c298cb3b141393975ad63979050

Cheers.

Higepon.

> --
> You received this message because you are subscribed to the Google Groups "Mosh Developer Disscus" group.
> To post to this group, send email to mosh-develo...@googlegroups.com.
> To unsubscribe from this group, send email to mosh-developer-di...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mosh-developer-discuss?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages