Lines Matching refs:current_length
1121 off_t current_length = chain_calculate_length_(chain);
1125 if(current_length < chain->initial_length && chain->tail->data->type == FLAC__METADATA_TYPE_PADDING) {
1126 const off_t delta = chain->initial_length - current_length;
1128 current_length += delta;
1129 FLAC__ASSERT(current_length == chain->initial_length);
1132 else if(current_length + (off_t)FLAC__STREAM_METADATA_HEADER_LENGTH <= chain->initial_length) {
1139 padding->length = chain->initial_length - (FLAC__STREAM_METADATA_HEADER_LENGTH + current_length);
1147 current_length = chain_calculate_length_(chain);
1148 FLAC__ASSERT(current_length == chain->initial_length);
1151 else if(current_length > chain->initial_length) {
1152 const off_t delta = current_length - chain->initial_length;
1157 current_length = chain_calculate_length_(chain);
1158 FLAC__ASSERT(current_length == chain->initial_length);
1163 current_length -= delta;
1164 FLAC__ASSERT(current_length == chain->initial_length);
1170 return current_length;
1620 const off_t current_length = chain_calculate_length_(chain);
1626 if(current_length < chain->initial_length && chain->tail->data->type == FLAC__METADATA_TYPE_PADDING)
1629 else if(current_length + (off_t)FLAC__STREAM_METADATA_HEADER_LENGTH <= chain->initial_length)
1632 else if(current_length > chain->initial_length) {
1633 const off_t delta = current_length - chain->initial_length;
1645 return (current_length != chain->initial_length);
1652 off_t current_length;
1666 current_length = chain_prepare_for_write_(chain, use_padding);
1669 if (0 == current_length)
1675 if(current_length == chain->initial_length) {
1686 chain->initial_length = current_length;
1701 off_t current_length;
1725 current_length = chain_prepare_for_write_(chain, use_padding);
1728 if (0 == current_length)
1731 FLAC__ASSERT(current_length == chain->initial_length);
1738 off_t current_length;
1766 current_length = chain_prepare_for_write_(chain, use_padding);
1769 if (0 == current_length)
1772 FLAC__ASSERT(current_length != chain->initial_length);
1786 chain->initial_length = current_length;