Lines Matching refs:length1
84 int length1, length2;
102 length1 = this->size - this->pos_write;
104 if (length < length1) {
110 length2 = length - length1;
111 memcpy(this->buf + this->pos_write, data, length1);
112 memcpy(this->buf, data + length1, length2);
127 int length1, length2;
145 length1 = this->size - this->pos_read;
182 if (length < length1) {
191 length2 = length - length1;
193 for (i = 1; i < length1; ++i)
197 if (i < length1)
204 midi_length = length1 + i;
222 if (length < length1) {
228 length2 = length - length1;
229 memcpy(data + repeat, this->buf + this->pos_read, length1);
230 memcpy(data + repeat + length1, this->buf, length2);