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

local ffxiv_ipc_byte_padding = Proto("ffxiv_ipc_byte_padding", "FFXIV-IPC BytePadding")

local byte_padding_fields = {
  padding = ProtoField.uint8("ffxiv_ipc_byte_padding.padding", "Padding", base.DEC),
}

ffxiv_ipc_byte_padding.fields = byte_padding_fields

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

  local len = tvbuf:len()

  -- dissect the padding field
  local padding_tvbr = tvbuf:range(0, 1)
  local padding_val  = padding_tvbr:le_uint()
  tree:add_le(byte_padding_fields.padding, padding_tvbr, padding_val)

  return len
end