Skip to content

Commit

Permalink
fix code and test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasmine-ge committed Jul 16, 2024
1 parent 9f7401c commit aeb5cdb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public BinarySerializer(BuffedWriter writer, boolean enableCompress) {
compressWriter = new CompressedBuffedWriter(TimeplusDefines.SOCKET_SEND_BUFFER_BYTES, writer);
}
switcher = new Switcher<>(compressWriter, writer);
// max num of byte is 32 for Int256
writeBuffer = new byte[32];
// max num of byte is 8 for double and long
writeBuffer = new byte[8];
}

public void writeVarInt(long x) throws IOException {
Expand Down

0 comments on commit aeb5cdb

Please sign in to comment.