From 9ac85a689c457d7c060c5a54cb950f461dbf0c72 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:32:43 +0000 Subject: [PATCH 1/3] Initial plan From 8008a8f45eb6a3749667950a3de43794bee95616 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 11:37:37 +0000 Subject: [PATCH 2/3] =?UTF-8?q?Fix=20typo:=20ENCODE=5FBY=5FLITTEL=5FENDIAN?= =?UTF-8?q?=20=E2=86=92=20ENCODE=5FBY=5FLITTLE=5FENDIAN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/ithewei/libhv/sessions/8e4ecff3-c8d8-43af-b29d-336c92e28c28 Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com> --- event/hloop.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/event/hloop.h b/event/hloop.h index 3e268fc3b..56d0b9f10 100644 --- a/event/hloop.h +++ b/event/hloop.h @@ -497,11 +497,14 @@ typedef enum { // UNPACK_BY_LENGTH_FIELD typedef enum { ENCODE_BY_VARINT = 17, // 1 MSB + 7 bits - ENCODE_BY_LITTEL_ENDIAN = LITTLE_ENDIAN, // 1234 + ENCODE_BY_LITTLE_ENDIAN = LITTLE_ENDIAN, // 1234 ENCODE_BY_BIG_ENDIAN = BIG_ENDIAN, // 4321 ENCODE_BY_ASN1 = 80, // asn1 decode int } unpack_coding_e; +// backward compatibility +#define ENCODE_BY_LITTEL_ENDIAN ENCODE_BY_LITTLE_ENDIAN + typedef struct unpack_setting_s { unpack_mode_e mode; unsigned int package_max_length; From c7a8e4ed563d45b0e0f8a48edc19d5e46255e28b Mon Sep 17 00:00:00 2001 From: ithewei Date: Mon, 30 Mar 2026 19:52:23 +0800 Subject: [PATCH 3/3] Remove backward compatibility for little endian encoding Removed backward compatibility definition for ENCODE_BY_LITTEL_ENDIAN. --- event/hloop.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/event/hloop.h b/event/hloop.h index 56d0b9f10..6547cda3b 100644 --- a/event/hloop.h +++ b/event/hloop.h @@ -502,9 +502,6 @@ typedef enum { ENCODE_BY_ASN1 = 80, // asn1 decode int } unpack_coding_e; -// backward compatibility -#define ENCODE_BY_LITTEL_ENDIAN ENCODE_BY_LITTLE_ENDIAN - typedef struct unpack_setting_s { unpack_mode_e mode; unsigned int package_max_length;