Binary.prototype.parse = function()

in database-jones/Adapter/common/MySQLSerialize.js [557:587]


Binary.prototype.parse = function() {
  switch(this.type) {
    case TYPE_LITERAL:
      return this.parseLiteral();

    case TYPE_INT16:
    case TYPE_UINT16:
      return this.parse16();

    case TYPE_INT32:
    case TYPE_UINT32:
      return this.parse32();

    case TYPE_DOUBLE:
      return this.parseDouble();

    case TYPE_STRING:
      return this.parseString();

    case TYPE_SMALL_ARRAY:
    case TYPE_LARGE_ARRAY:
      return this.parseArray();

    case TYPE_SMALL_OBJ:
    case TYPE_LARGE_OBJ:
      return this.parseObject();

    default:
      assert.ifError("Parser for type not implemented " + this.type);
  }
};