Get a buffer from an object.
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);
}