def _BinLoadObject(self, ofs=0):
    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 KeyError:
      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
Load an object.
dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/ApplePlist._BinLoadObject