code: def decompileOffsets_(data, tableFormat, glyphCount):
      if tableFormat == 0:
          # Short format: array of UInt16
          offsets = array.array("H")
          offsetsSize = (glyphCount + 1) * 2
      else:
          # Long format: array of UInt32
          offsets = array.array("I")
          offsetsSize = (glyphCount + 1) * 4
      offsets.frombytes(data[0:offsetsSize])
      if sys.byteorder != "big":
          offsets.byteswap()
  
      # In the short format, offsets need to be multiplied by 2.
      # This is not documented in Apple's TrueType specification,
      # but can be inferred from the FreeType implementation, and
      # we could verify it with two sample GX fonts.
      if tableFormat == 0:
          offsets = [off * 2 for off in offsets]
  
      return offsets
  
imports: from collections import UserDict, deque
  from functools import partial
  from fontTools.misc import sstruct
  from fontTools.misc.textTools import safeEval
  from .None import DefaultTable
  import array
  import itertools
  import logging
  import struct
  import sys
  import fontTools.ttLib.tables.TupleVariation
label_desc: Use image node_id 6 for calling the table__g_v_a_r obj's underlying member method code with example usage: obj.decompileOffsets_(data, tableFormat, glyphCount) and returns: offsets