Lines Matching refs:length1
88 int length1, length2; in line6_midibuf_write() local
106 length1 = this->size - this->pos_write; in line6_midibuf_write()
108 if (length < length1) { in line6_midibuf_write()
114 length2 = length - length1; in line6_midibuf_write()
115 memcpy(this->buf + this->pos_write, data, length1); in line6_midibuf_write()
116 memcpy(this->buf, data + length1, length2); in line6_midibuf_write()
131 int length1, length2; in line6_midibuf_read() local
149 length1 = this->size - this->pos_read; in line6_midibuf_read()
173 if (length < length1) { in line6_midibuf_read()
182 length2 = length - length1; in line6_midibuf_read()
184 for (i = 1; i < length1; ++i) in line6_midibuf_read()
188 if (i < length1) in line6_midibuf_read()
195 midi_length = length1 + i; in line6_midibuf_read()
213 if (length < length1) { in line6_midibuf_read()
219 length2 = length - length1; in line6_midibuf_read()
220 memcpy(data + repeat, this->buf + this->pos_read, length1); in line6_midibuf_read()
221 memcpy(data + repeat + length1, this->buf, length2); in line6_midibuf_read()