I have a byte array I want to set to a set X amount of bytes, but I want to initialize it first then assign bytes to it later, index by index.
What should I do? So far I've been just creating a byte array of X bytes, all just filled with FF to make things simple but I feel like this is not the best way.
Thanks
edit: Would the best way just be
byte[] bArr = new byte[X];
??