class_docstr: Support Graphite Gloc tables
code: def compile(self, ttFont):
      data = sstruct.pack(
          Gloc_header,
          dict(
              version=1.0,
              flags=(bool(self.attribIds) << 1)
              + (self.locations.typecode == "I"),
              numAttribs=self.numAttribs,
          ),
      )
      if sys.byteorder != "big":
          self.locations.byteswap()
      data += self.locations.tobytes()
      if sys.byteorder != "big":
          self.locations.byteswap()
      if self.attribIds:
          if sys.byteorder != "big":
              self.attribIds.byteswap()
          data += self.attribIds.tobytes()
          if sys.byteorder != "big":
              self.attribIds.byteswap()
      return data
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/G__l_o_c.py
imports: from fontTools.misc import sstruct
  from fontTools.misc.textTools import safeEval
  from .None import DefaultTable
  import array
  import sys
label_desc: Use image node_id 3 for calling the table_G__l_o_c obj's underlying member method code with example usage: obj.compile(ttFont) and returns: data