Skip to content

Need help understanding setDataOnSimObject() #104

Answered by EvenAR
yourcptainspeaking asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! I see you specify FLOAT64 (8 bytes) in the data definition, but when writing to the rawbuffer you use writeInt32 (4 bytes). This will cause a size mismatch between the RawBuffer and the data definition, which could be related to the exception you are getting. Try replacing it with writeFloat64 (or alternatively use INT32 in the data definition).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yourcptainspeaking
Comment options

@EvenAR
Comment options

@yourcptainspeaking
Comment options

Answer selected by yourcptainspeaking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants