You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to copy a subvalue out of an rpc params message, and then encode it as a new standalone message (which is then written to disk). What would be the correct way to clone or copy one of my own structs into a new message/segment? Alternatively, is it safe to have a single segment being used by two messages?
The text was updated successfully, but these errors were encountered:
andrewchambers
changed the title
Maybe dumb question, clone or copy?
Maybe a dumb question, clone or copy?
May 3, 2018
If you set a pointer field to an object in a different message, the object will be copied automatically into the message. This is perhaps not documented as well as it should be, but the behavior is guaranteed.
I am trying to copy a subvalue out of an rpc params message, and then encode it as a new standalone message (which is then written to disk). What would be the correct way to clone or copy one of my own structs into a new message/segment? Alternatively, is it safe to have a single segment being used by two messages?
The text was updated successfully, but these errors were encountered: