Skip to content

Instantly share code, notes, and snippets.

@hansihe
Created March 12, 2017 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hansihe/d74288761cbc4fcb95f42b2f3c25176b to your computer and use it in GitHub Desktop.
Save hansihe/d74288761cbc4fcb95f42b2f3c25176b to your computer and use it in GitHub Desktop.
{
"types": {
"test_type": "i8",
},
}
function(native_types) {
return {
test_type: {
write: function(buf, val) { // What kinda what should it write to?
native_types["i8"]["write"](buf, val);
},
read: function(buf, val) { // What kinda what should it read from?
return native_types["i8"]["read"](buf, val);
},
},
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment