Write an object directly into the ODB
This method writes a full object straight into the ODB. For most cases, it is preferred to write objects through a write stream, which is both faster and less memory intensive, specially for big objects.
This method is provided for compatibility with custom backends which are not able to support streaming writes
buffer with the data to storr
size of the buffer
0 or an error code