buffer encoders and decorders
fix write double and floats
Merge pull request #1 from marcosbergamo/master

buffer encoders and decorders