01.03.2018, 00:25
Quote:
If you were reading and writing to the file byte by byte then this wouldn't be a problem. However, what you can do is write the number of bytes from the .amx file that are divisible by 4 and treat the remainder bytes in a different way.
For instance, if a file has a size of 131 bytes, you could write or read the first 128 bytes (divisible by 4) and you have a remainder of 3 bytes that you can read or write separately. Note that we're using little endian order. |