Skip to content

Commit

Permalink
cleanup almost done [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vo-nil committed Dec 13, 2024
1 parent a57af48 commit 385da68
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 3,007 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,56 +250,6 @@ namespace nil::crypto3 {
return base_impl_type::max_length();
}

/// @brief Force number of elements that must be read in the next read()
/// invocation.
/// @details Exists only if nil::crypto3::marshalling::option::sequence_size_forcing_enabled option has been
/// used.
/// @param[in] count Number of elements to read during following read operation.
void force_read_elem_count(std::size_t count) {
return base_impl_type::force_read_elem_count(count);
}

/// @brief Clear forcing of the number of elements that must be read in the next read()
/// invocation.
/// @details Exists only if nil::crypto3::marshalling::option::sequence_size_forcing_enabled option has been
/// used.
void clear_read_elem_count() {
return base_impl_type::clear_read_elem_count();
}

/// @brief Force available length for the next read() invocation.
/// @details Exists only if @ref nil::crypto3::marshalling::option::sequence_length_forcing_enabled option has been
/// used.
/// @param[in] count Number of elements to read during following read operation.
void force_read_length(std::size_t count) {
return base_impl_type::force_read_length(count);
}

/// @brief Clear forcing of the available length in the next read()
/// invocation.
/// @details Exists only if @ref nil::crypto3::marshalling::option::sequence_length_forcing_enabled option has been
/// used.
void clear_read_length_forcing() {
return base_impl_type::clear_read_length_forcing();
}

/// @brief Force serialization length of a single element.
/// @details The function can be used to force a serialization length of a
/// single element within the array_list.
/// Exists only if @ref nil::crypto3::marshalling::option::SequenceElemLengthForcingEnabled option has been
/// used.
/// @param[in] count Number of elements to read during following read operation.
void force_read_elem_length(std::size_t count) {
return base_impl_type::force_read_elem_length(count);
}

/// @brief Clear forcing the serialization length of the single element.
/// @details Exists only if nil::crypto3::marshalling::option::SequenceElemLengthForcingEnabled option has been
/// used.
void clear_read_elem_length_forcing() {
return base_impl_type::clear_read_elem_length_forcing();
}

/// @brief Compile time check if this class is version dependent
static constexpr bool is_version_dependent() {
return parsed_options_type::has_custom_version_update || base_impl_type::is_version_dependent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ namespace nil::crypto3 {
return sum + e.length();
});
}

constexpr std::size_t bit_length_internal(field_elem_tag) const {
return bit_field_length(field_elem_tag());
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 385da68

Please sign in to comment.