crazy... how'd they get coke to rock up into a flat bar??

I used to rock up coke all the time (to sell) so I'm just curious how they did that.