We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a43c8 commit b6b52dbCopy full SHA for b6b52db
core/src/main/java/com/qq/tars/protocol/tars/TarsInputStream.java
@@ -103,9 +103,6 @@ public boolean skipToTag(int tag) {
103
try {
104
HeadData hd = new HeadData();
105
while (true) {
106
- if(bs.readableBytes()==0){
107
- return false;
108
- }
109
int len = peakHead(hd);
110
if (hd.type == TarsStructBase.STRUCT_END) {
111
return false;
@@ -904,10 +901,11 @@ public int setServerEncoding(Charset se) {
904
901
905
902
906
903
public ByteBuf getBs() {
907
- return this.bs;
+ return this.bs;
908
}
+
909
public byte[] toByteArray() {
910
- final byte[] byteArrays =new byte[bs.readableBytes()];
+ final byte[] byteArrays = new byte[bs.readableBytes()];
911
bs.readBytes(byteArrays);
912
return byteArrays;
913
0 commit comments