Lines Matching refs:length
42 * <li>The total length of the message in bytes (the status byte plus any data bytes)</li>
81 * byte for the message; subsequent bytes up to the length
93 protected int length = 0;
111 this.length = data.length;
122 protected void setMessage(byte[] data, int length) throws InvalidMidiDataException {
123 if (length < 0 || (length > 0 && length > data.length)) {
124 throw new IndexOutOfBoundsException("length out of bounds: "+length);
126 this.length = length;
128 if (this.data == null || this.data.length < this.length) {
129 this.data = new byte[this.length];
131 System.arraycopy(data, 0, this.data, 0, length);
138 * the length of the message are data bytes. The byte array may have a
139 * length which is greater than that of the actual message; the total
140 * length of the message in bytes is reported by the <code>{@link #getLength}</code>
146 byte[] returnedArray = new byte[length];
147 System.arraycopy(data, 0, returnedArray, 0, length);
161 if (length > 0) {
169 * Obtains the total length of the MIDI message in bytes. A
175 * @return the length of the message in bytes
178 return length;