You can refer to the following code;
int num = 0x 0 1020304;
char str[4]= { 0 };
*(int *)str = num; //Force the char pointer to be converted into an int pointer, and then add a * sign in front to assign the value.
At this point, str [0] = 0x04; str[ 1]= 0x 03;
str[2]= 0x 02; str[3]= 0x 0 1;
You can see the order of high status. This method can directly divide a plastic into four charge types in turn. As for what combination you want after the split, you can handle it yourself.
Similarly, you can use this method to break the plastic into short pieces or short pieces of charcoal.
Hope useful to you