Did the people who got a calendar invite know that they were getting laid off in advance?
Yes, people generally put two and two together when there was a calendar invite with their manager and HR.
We were in a European office though, so layoffs aren't American-style "escorted from the office with immediate effect".