Skip to content

Commit

Permalink
Rename create_deserializer_and_data_context -> create_data_context.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Oct 24, 2024
1 parent c3e44c9 commit c6fc555
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/clp_ffi_js/ir/StreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ auto StreamReader::create(DataArrayTsType const& data_array) -> StreamReader {
auto zstd_decompressor{std::make_unique<clp::streaming_compression::zstd::Decompressor>()};
zstd_decompressor->open(data_buffer.data(), length);

auto stream_reader_data_context{create_deserializer_and_data_context(
std::move(zstd_decompressor),
std::move(data_buffer)
)};
auto stream_reader_data_context{
create_data_context(std::move(zstd_decompressor), std::move(data_buffer))
};
return StreamReader{std::move(stream_reader_data_context)};
}

Expand Down Expand Up @@ -210,7 +209,7 @@ StreamReader::StreamReader(
)},
m_ts_pattern{m_stream_reader_data_context->get_deserializer().get_timestamp_pattern()} {}

auto StreamReader::create_deserializer_and_data_context(
auto StreamReader::create_data_context(
std::unique_ptr<clp::streaming_compression::zstd::Decompressor>&& zstd_decompressor,
clp::Array<char>&& data_buffer
) -> StreamReaderDataContext<four_byte_encoded_variable_t> {
Expand Down
2 changes: 1 addition & 1 deletion src/clp_ffi_js/ir/StreamReader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class StreamReader {
);

// Methods
[[nodiscard]] static auto create_deserializer_and_data_context(
[[nodiscard]] static auto create_data_context(
std::unique_ptr<clp::streaming_compression::zstd::Decompressor>&& zstd_decompressor,
clp::Array<char>&& data_buffer
) -> StreamReaderDataContext<four_byte_encoded_variable_t>;
Expand Down

0 comments on commit c6fc555

Please sign in to comment.