I am writing alot of single bytes into a byte Array. Is there any way to compact this and write them all at once?
myByteArray.writeByte(0x00);
myByteArray.writeByte(0x00);
myByteArray.writeByte(0x00);
myByteArray.writeByte(0x01);
myByteArray.writeByte(0x00);
myByteArray.writeByte(0x10);
Could create a
Vectorand list your values there, then just write them in from there.