datanoise / mongo.cr

Crystal binding for MongoDB C Driver
MIT License
97 stars 35 forks source link

Reorganize BSON #1

Closed jeromegn closed 9 years ago

jeromegn commented 9 years ago

This is a break-up of the BSON class and child classes/structs into different files.

The only other modification I did was remove .cstr from all the strings passed to LibBSON methods. to_unsafe is called on those when passing them to lib functions, and String#to_unsafe == String#cstr.