afroman arrested

*Hopefully he had gotten high before … nah, that’s no excuse for what he did.

We’re talking about Afroman who’s looking at time in the pokey and undoubtedly a big ol’ lawsuit for what he did to a woman while he was performing.

It went down in Biloxi, Mississippi Tuesday night; witnesses say a woman, for whatever reason, got on stage and approached Afroman and then all of a sudden, without warning, he cold-cocked the crap outta her!

The woman went down hard — and even though she was bleeding and crying … we’re told Afroman kept on performing until the house lights came on and the music stopped.

Security helped the woman off the stage — while cops took Afroman. Witnesses say he was handcuffed outside the venue.

Afroman’s rep told TMZ the rapper had no idea if the fan was a man or a woman … he just reacted to someone being on stage. If For the record, the rep claims there was also a lack of security at the venue to keep fans off the stage.

The rep added this is totally out of character for Afroman.

Watch: