1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/docs/data_conversion.txt
Bill Robertson 68c968e109 Add a docs target & worked on documentation. Changed pushString() to
std::string, and added pushUnknown() to conversion destination classes
2009-10-17 23:45:02 -04:00

18 lines
474 B
Text

Short list of types that a receiver should handle:
type expected method
-------------------------------
<null> pushNull
boolean pushBool
int64 pushInt (overloaded on 64-bit int)
double pushDouble
const std::string& pushString
??? pushUndefined
int32 pushInt (overloaded on 32-bit int)
for lack of any better ideas have these functions return true on
success and false on error
--
should add more later.