Encoding: Refactor mblen() to accept first byte instead of pointer

This commit is contained in:
kichikuou
2024-12-20 13:59:30 +09:00
parent b000fecf92
commit 24c6041915
6 changed files with 27 additions and 32 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ void NACT::message(uint8 terminator)
const uint8* begin = sco.ptr();
const uint8* p = begin;
while (is_message(*p))
p += encoding->mblen(p);
p += encoding->mblen(*p);
int len = p - begin;
sco.skip(len);