lib/converter.js
function object(obj) {
  var buffers = []
    , buf
    , k
    , v
    , len = 0;
  for(k in obj) {
    buf = this.getStringBuffer(k);
    len += buf.length;
    buffers.push(buf);

    buf = this.getStringBuffer(obj[k]);
    len += buf.length;
    buffers.push(buf);
  }
  return Buffer.concat(buffers, len);
}
function object(obj) {
  var buffers = []
    , buf
    , k
    , v
    , len = 0;
  for(k in obj) {
    buf = this.getStringBuffer(k);
    len += buf.length;
    buffers.push(buf);

    buf = this.getStringBuffer(obj[k]);
    len += buf.length;
    buffers.push(buf);
  }
  return Buffer.concat(buffers, len);
}
Get a buffer from an object.