Returns serialization type of binary form.

        :return: Serialization type of binary form.

def get_type(self):
        """
        Returns serialization type of binary form.

        :return: Serialization type of binary form.
        """
        if self.total_size() == 0:
            return CONSTANT_TYPE_NULL
        return unpack_from(FMT_BE_INT, self._buffer, TYPE_OFFSET)[0]