Lines Matching refs:recordLength

119     if (!isFixedRecordLength || !recordLength) {  in OpenUnit()
123 } else if (*recordLength <= 0) { in OpenUnit()
126 unitNumber(), static_cast<std::intmax_t>(*recordLength)); in OpenUnit()
127 } else if (totalBytes && (*totalBytes % *recordLength != 0)) { in OpenUnit()
131 unitNumber(), static_cast<std::intmax_t>(*recordLength), in OpenUnit()
137 if (totalBytes && recordLength && *recordLength) { in OpenUnit()
138 endfileRecordNumber = 1 + (*totalBytes / *recordLength); in OpenUnit()
248 if (furthestAfter > recordLength.value_or(furthestAfter)) { in Emit()
253 static_cast<std::intmax_t>(*recordLength)); in Emit()
276 if (furthestAfter > recordLength.value_or(furthestAfter)) { in Receive()
280 static_cast<std::intmax_t>(*recordLength)); in Receive()
314 recordLength.value_or(positionInRecord + bytes)) { in FrameNextInput()
329 if (recordLength || access != Access::Sequential) { in SetSequentialVariableFormattedRecordLength()
336 recordLength = nl - record; in SetSequentialVariableFormattedRecordLength()
337 if (*recordLength > 0 && record[*recordLength - 1] == '\r') { in SetSequentialVariableFormattedRecordLength()
338 --*recordLength; in SetSequentialVariableFormattedRecordLength()
361 RUNTIME_CHECK(handler, recordLength.has_value()); in BeginReadingRecord()
362 auto need{static_cast<std::size_t>(recordOffsetInFrame_ + *recordLength)}; in BeginReadingRecord()
381 RUNTIME_CHECK(handler, recordLength.has_value()); in FinishReadingRecord()
383 frameOffsetInFile_ += recordOffsetInFrame_ + *recordLength; in FinishReadingRecord()
387 frameOffsetInFile_ += recordOffsetInFrame_ + *recordLength; in FinishReadingRecord()
389 recordLength.reset(); in FinishReadingRecord()
391 if (Frame()[recordOffsetInFrame_ + *recordLength] == '\r') { in FinishReadingRecord()
394 recordOffsetInFrame_ += *recordLength + 1; in FinishReadingRecord()
396 recordLength.reset(); in FinishReadingRecord()
409 if (isFixedRecordLength && recordLength) { in AdvanceRecord()
411 if (furthestPositionInRecord < *recordLength) { in AdvanceRecord()
413 frameOffsetInFile_, recordOffsetInFrame_ + *recordLength, handler); in AdvanceRecord()
415 isUnformatted ? 0 : ' ', *recordLength - furthestPositionInRecord); in AdvanceRecord()
439 recordOffsetInFrame_ + recordLength.value_or(furthestPositionInRecord); in AdvanceRecord()
529 recordLength = sizeof header + header; // does not include footer in BeginSequentialVariableUnformattedInputRecord()
530 need = recordOffsetInFrame_ + *recordLength + sizeof footer; in BeginSequentialVariableUnformattedInputRecord()
537 std::memcpy(&footer, Frame() + recordOffsetInFrame_ + *recordLength, in BeginSequentialVariableUnformattedInputRecord()
572 RUNTIME_CHECK(handler, recordLength.has_value()); in BackspaceFixedRecord()
573 if (frameOffsetInFile_ < *recordLength) { in BackspaceFixedRecord()
576 frameOffsetInFile_ -= *recordLength; in BackspaceFixedRecord()
597 recordLength = footer; in BackspaceVariableUnformattedRecord()
598 RUNTIME_CHECK(handler, frameOffsetInFile_ >= *recordLength + 2 * headerBytes); in BackspaceVariableUnformattedRecord()
599 frameOffsetInFile_ -= *recordLength + 2 * headerBytes; in BackspaceVariableUnformattedRecord()
605 recordOffsetInFrame_ + sizeof header + *recordLength)}; in BackspaceVariableUnformattedRecord()
609 RUNTIME_CHECK(handler, header == *recordLength); in BackspaceVariableUnformattedRecord()
637 *recordLength = prevNL - (frameOffsetInFile_ + recordOffsetInFrame_); in BackspaceVariableFormattedRecord()
643 *recordLength = prevNL; in BackspaceVariableFormattedRecord()
651 RUNTIME_CHECK(handler, Frame()[recordOffsetInFrame_ + *recordLength] == '\n'); in BackspaceVariableFormattedRecord()
652 if (*recordLength > 0 && in BackspaceVariableFormattedRecord()
653 Frame()[recordOffsetInFrame_ + *recordLength - 1] == '\r') { in BackspaceVariableFormattedRecord()
654 --*recordLength; in BackspaceVariableFormattedRecord()