def _BinLoadObject(self, ofs=0):
    """Load an object.

    Args:
      ofs: int, offset in binary
    Returns:
      any value of object (int, str, etc..)
    """
    pos = ofs

    if pos in self.__bin:
      return self.__bin[pos]

    objtype = ord(self._plist_bin[pos]) >> 4
    objarg = ord(self._plist_bin[pos]) & 0xf
    try:
      x = self._type_lookup[objtype](pos, objtype, objarg)
      self.__bin[pos] = x
    except __HOLE__:
      raise MalformedPlistError('Unknown binary objtype %d' % objtype)
    except (ValueError, TypeError) as e:
      raise MalformedPlistError(
          'Binary struct problem offset %d: %s' % (pos, str(e)))
    return x
dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/ApplePlist._BinLoadObject