Source

fantomongo / fan / bson / BsonWriter.fan

Author Commit Message Labels Comments Date
Liam Staskawicz
* bson: use DOUBLE instead of NUMBER as per docs
Liam Staskawicz
* fix bson CodeWScope and test it
Liam Staskawicz
* use implicit conversions in BsonWriter instead of 'v as Type'
Liam Staskawicz
* rename CodeWScope to Code
Liam Staskawicz
* slightly more complete
Liam Staskawicz
* binary didn't implement spec correctly
Liam Staskawicz
* slight optimization - no enums, just Ints for constants
Liam Staskawicz
* use Map.addList instead of List.each
Liam Staskawicz
* since bson needs to be written to a Buf before being sent anyway, might as well write it all to one Buf instead of having multiple intermediate instances hanging around
Liam Staskawicz
* fix bug with reading/writing BSON ints - all Fan Ints are 64-bit so just write them as BSON Longs * add CodeWScope (not tested/working yet)
Liam Staskawicz
* add license
Liam Staskawicz
* initial commit of working code