From d8bbf5049a64a3b03a25ada60532f5d2ca4926b0 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 2 May 2025 15:56:47 +0200 Subject: astdx: lib: ran format codebase script, figuring out how to layout fix header file. Signed-off-by: Amlal --- lib/astdx/cgi.hpp | 6 +++--- lib/astdx/crc32.hpp | 6 +++--- lib/astdx/embdfs.hpp | 4 ++-- lib/astdx/fix.hpp | 21 +++++++++++++++++---- lib/astdx/opt.hpp | 6 +++--- 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/lib/astdx/cgi.hpp b/lib/astdx/cgi.hpp index ae2b650..70f07e1 100644 --- a/lib/astdx/cgi.hpp +++ b/lib/astdx/cgi.hpp @@ -1,7 +1,7 @@ -/* +/* * File: cgi.hpp - * Author: Amlal El Mahrouss, - * Copyright 2023-2025, Amlal El Mahrouss all rights reserved. + * Author: Amlal El Mahrouss, + * Copyright 2023-2025, Amlal El Mahrouss all rights reserved. */ #ifndef _STDX_CGI_HPP diff --git a/lib/astdx/crc32.hpp b/lib/astdx/crc32.hpp index b559aa9..371f456 100644 --- a/lib/astdx/crc32.hpp +++ b/lib/astdx/crc32.hpp @@ -1,8 +1,8 @@ -/* +/* * File: embfs.hpp * Purpose: Embedded File System. - * Author: Amlal El Mahrouss, - * Copyright 2025, Amlal El Mahrouss all rights reserved. + * Author: Amlal El Mahrouss, + * Copyright 2025, Amlal El Mahrouss all rights reserved. */ #ifndef _STDX_CRC32_HPP diff --git a/lib/astdx/embdfs.hpp b/lib/astdx/embdfs.hpp index fde1c1e..893ca13 100644 --- a/lib/astdx/embdfs.hpp +++ b/lib/astdx/embdfs.hpp @@ -1,8 +1,8 @@ -/* +/* * File: embfs.hpp * Purpose: Embedded File System. * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss all rights reserved. + * Copyright 2025, Amlal El Mahrouss all rights reserved. */ #ifndef _STDX_EMBDFS_HPP diff --git a/lib/astdx/fix.hpp b/lib/astdx/fix.hpp index 150df9e..2609785 100644 --- a/lib/astdx/fix.hpp +++ b/lib/astdx/fix.hpp @@ -10,12 +10,25 @@ #include #include +#include +#include +#include namespace astdx::fix { - struct fix_reader; - struct fix_writer; - struct fix_visitor; -} + struct fix_reader; + struct fix_writer; + struct fix_visitor; + struct fix_range; + + /// @brief Buffer+Length structure + typedef fix_range* fix_range_ptr_t; + + struct fix_range final + { + char* ascii_bytes_; + uint16_t length_; + }; +} // namespace astdx::fix #endif // ifndef _STDX_FIX_HPP diff --git a/lib/astdx/opt.hpp b/lib/astdx/opt.hpp index e8772c9..12883ce 100644 --- a/lib/astdx/opt.hpp +++ b/lib/astdx/opt.hpp @@ -1,7 +1,7 @@ -/* +/* * File: opt.hpp - * Author: Amlal El Mahrouss, - * Copyright 2023-2025, Amlal El Mahrouss all rights reserved. + * Author: Amlal El Mahrouss, + * Copyright 2023-2025, Amlal El Mahrouss all rights reserved. */ #ifndef _STDX_OPT_HPP -- cgit v1.2.3