We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8444fb9 commit b1e7e49Copy full SHA for b1e7e49
1 file changed
src/main/java/tech/smartboot/redisun/resp/BulkStrings.java
@@ -76,18 +76,19 @@ public boolean decode(ByteBuffer readBuffer) {
76
// 空字符串
77
state = DECODE_STATE_END;
78
out = EMPTY_OUTPUT_STREAM;
79
+ break;
80
} else if (length > 0) {
81
if (length + 2 <= readBuffer.capacity()) {
82
state = DECODE_STATE_SIMPLE_VALUE;
83
} else {
84
// 初始化输出流以存储字符串数据
85
out = new ByteArrayOutputStream(length);
86
state = DECODE_STATE_LONG_VALUE;
87
88
}
89
90
return false;
91
- break;
92
case DECODE_STATE_SIMPLE_VALUE: {
93
if (readBuffer.remaining() < length + 2) {
94
0 commit comments