add fromBuffer and fromBufferList API
Release 1.2.0