Lines Matching refs:length

32  * a defined length.  Data from a system exclusive message from a MIDI file
36 * The length reported by the <code>SysexMessage</code> object is therefore
37 * the length of the system exclusive data plus two: one byte for the status
49 * <code>SysexMessages</code>. In this case, the length of the system exclusive data
131 * @param length the length of the valid message data in the array,
133 * or equal to {@code data.length}
141 public SysexMessage(byte[] data, int length)
144 setMessage(data, length);
155 * @param length the length of the valid message data in the array;
157 * {@code data.length}
165 public SysexMessage(int status, byte[] data, int length)
168 setMessage(status, data, length);
189 * @param length the length of the valid message data in
192 public void setMessage(byte[] data, int length) throws InvalidMidiDataException {
197 super.setMessage(data, length);
205 * @param length the length of the valid message data in
208 public void setMessage(int status, byte[] data, int length) throws InvalidMidiDataException {
212 if (length < 0 || length > data.length) {
213 throw new IndexOutOfBoundsException("length out of bounds: "+length);
215 this.length = length + 1;
217 if (this.data==null || this.data.length < this.length) {
218 this.data = new byte[this.length];
222 if (length > 0) {
223 System.arraycopy(data, 0, this.data, 1, length);
234 byte[] returnedArray = new byte[length - 1];
235 System.arraycopy(data, 1, returnedArray, 0, (length - 1));
246 byte[] newData = new byte[length];
247 System.arraycopy(data, 0, newData, 0, newData.length);