I think this is a pretty simple question but I haven't been able to find the answer online.
I want to store the binary data for a MIDI file in my application in the form of a byte array. Since the MIDI file never changes and is only 168 bytes long I want to have it hard coded into a byte variable, rather than load it from a data stream.
I know how to create a byte array by doing
byte buffer = new byte
but I'm not sure how to fill the array with data.
I guess it would look something like this? The MIDI data contains null characters also so I'm not sure how all that would be input into the array.
byte buffer = new byte[1, 2, 3, 4, 5]