code: function(friendnum, data, lossless) {
    this.type = 'FriendPacketEvent';
    this._friendnum = friendnum;
    this._fullData = data;
    this._data = data.slice(1);
    this._id = data[0];
    this._lossless = lossless;
  }
docs: Event object fired by {@class Tox}.
  Corresponds to tox_callback_friend_lossless_packet(3)
  and tox_callback_friend_lossy_packet(3).
  @class
  @param {Number} friendnum - Friend number
  @param {Buffer} data - Received data
  @param {Boolean} lossless - true if lossless, false if lossy