fix: 修复2字节时小端模式失效问题

This commit is contained in:
zhouhao 2024-03-28 15:12:22 +08:00
parent 0f874dd4fb
commit cf2c781414
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -29,3 +29,4 @@ docker/data
!demo-protocol-1.0.jar
application-local.yml
dev/
.DS_Store

View File

@ -46,7 +46,7 @@ public class LengthFieldPayloadParserBuilder implements PayloadParserBuilderStra
break;
case 2:
lengthParser =
le ? buffer -> buffer.getUnsignedShort(offset)
le ? buffer -> buffer.getUnsignedShortLE(offset)
: buffer -> buffer.getUnsignedShort(offset);
break;
case 3: