Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raw_ref type? #201

Closed
brandonros opened this issue Feb 19, 2022 · 2 comments
Closed

raw_ref type? #201

brandonros opened this issue Feb 19, 2022 · 2 comments

Comments

@brandonros
Copy link

// PassThruGetLastError
typedef struct _get_last_error_rpc_response {
  long retVal;
  RPCLIB_MSGPACK::type::raw_ref errorMsgRef;
  MSGPACK_DEFINE(
    retVal,
    errorMsgRef
  )
} get_last_error_rpc_response;

Example

@gfx
Copy link
Member

gfx commented Feb 21, 2022

Can you describe what you want in the messagepack-javascript? Your example looks like C code.

@brandonros
Copy link
Author

I am happy to say that messagepack-javascript correctly handled creating it to Uint8Array with no manual intervention, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants