From c6fc555813ed901d2a94a6f7f4518cc4985b9034 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Wed, 23 Oct 2024 22:14:23 -0400 Subject: [PATCH] Rename `create_deserializer_and_data_context` -> `create_data_context`. --- src/clp_ffi_js/ir/StreamReader.cpp | 9 ++++----- src/clp_ffi_js/ir/StreamReader.hpp | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/clp_ffi_js/ir/StreamReader.cpp b/src/clp_ffi_js/ir/StreamReader.cpp index a4a01f20..0313e3f7 100644 --- a/src/clp_ffi_js/ir/StreamReader.cpp +++ b/src/clp_ffi_js/ir/StreamReader.cpp @@ -48,10 +48,9 @@ auto StreamReader::create(DataArrayTsType const& data_array) -> StreamReader { auto zstd_decompressor{std::make_unique()}; 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)}; } @@ -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&& zstd_decompressor, clp::Array&& data_buffer ) -> StreamReaderDataContext { diff --git a/src/clp_ffi_js/ir/StreamReader.hpp b/src/clp_ffi_js/ir/StreamReader.hpp index b8fe0a20..f7aa8f41 100644 --- a/src/clp_ffi_js/ir/StreamReader.hpp +++ b/src/clp_ffi_js/ir/StreamReader.hpp @@ -106,7 +106,7 @@ class StreamReader { ); // Methods - [[nodiscard]] static auto create_deserializer_and_data_context( + [[nodiscard]] static auto create_data_context( std::unique_ptr&& zstd_decompressor, clp::Array&& data_buffer ) -> StreamReaderDataContext;