def write_long(self, n, pack=Struct('>I').pack):
        """
        Write an integer as an unsigned 32-bit value.
        """
        if 0 <= n <= 0xFFFFFFFF:
            self._output_buffer.extend(pack(n))
        else:
            raise ValueError('Long %d out of range 0..0xFFFFFFFF', n)
        return self
Write an integer as an unsigned 32-bit value.