From 15d818ce37b5f1ea10bd6505e1935913b2c53fb3 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Mon, 14 Oct 2024 21:41:15 -0400 Subject: [PATCH] Add docs for `rewind_reader_and_verify_encoding_type`. --- src/clp_ffi_js/ir/decoding_methods.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/clp_ffi_js/ir/decoding_methods.hpp b/src/clp_ffi_js/ir/decoding_methods.hpp index 9e24280d..d2267c9a 100644 --- a/src/clp_ffi_js/ir/decoding_methods.hpp +++ b/src/clp_ffi_js/ir/decoding_methods.hpp @@ -4,6 +4,12 @@ #include namespace clp_ffi_js::ir { +/** + * Rewinds the reader to the beginning and verifies the CLP IR data encoding type. + * @param reader + * @throws ClpFfiJsException if there is a failure to decode the encoding type or if the encoding + * type is unsupported. + */ auto rewind_reader_and_verify_encoding_type(clp::ReaderInterface& reader) -> void; } // namespace clp_ffi_js::ir