I have to send data over the net to a server and the first two 4-byte blocks are a header that represent two integers defining how much data follows. I think you could fill them in like this:
But, since (I think)
Java byte order IS network byte order, isn't there any way I can do a byte-by-byte copy of an integer into a byte array?
TIA