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);