-- This file is generated by tools/json2lua.js

local ffxiv_ipc_perform_note = Proto("ffxiv_ipc_perform_note", "FFXIV-IPC PerformNote")

local perform_note_fields = {
  length = ProtoField.int8("ffxiv_ipc_perform_note.length", "Length", base.DEC),
}

ffxiv_ipc_perform_note.fields = perform_note_fields

function ffxiv_ipc_perform_note.dissector(tvbuf, pktinfo, root)
  local tree = root:add(ffxiv_ipc_perform_note, tvbuf)
  pktinfo.cols.info:set("PerformNote")

  local len = tvbuf:len()

  -- dissect the length field
  local length_tvbr = tvbuf:range(0, 1)
  local length_val  = length_tvbr:le_int()
  tree:add_le(perform_note_fields.length, length_tvbr, length_val)

  return len
end