Lines Matching defs:fragmentStart
992 jint fragmentStart;
1004 fragmentStart = shared->writeOffset;
1006 if (fragmentStart < shared->readOffset) {
1007 maxLength = shared->readOffset - fragmentStart;
1009 maxLength = SHARED_BUFFER_SIZE - fragmentStart;
1012 memcpy(shared->buffer + fragmentStart, (jbyte *)bytes + index, fragmentLength);
1013 shared->writeOffset = ADD_OFFSET(fragmentStart, fragmentLength);
1064 jint fragmentStart;
1076 fragmentStart = shared->readOffset;
1077 if (fragmentStart < shared->writeOffset) {
1078 maxLength = shared->writeOffset - fragmentStart;
1080 maxLength = SHARED_BUFFER_SIZE - fragmentStart;
1083 memcpy((jbyte *)bytes + index, shared->buffer + fragmentStart, fragmentLength);
1084 shared->readOffset = ADD_OFFSET(fragmentStart, fragmentLength);