Skip to content

Commit

Permalink
refact: specify the strAddrBuf length
Browse files Browse the repository at this point in the history
  • Loading branch information
dl239 authored Jan 30, 2024
1 parent 6cb19af commit 527b08d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,8 @@ public boolean build() {
result.putInt(totalSize); // Size
result.put(nullBitmap.getBuffer()); // BitMap
result.put(baseFieldBuf.array()); // Base data type
result.put(strAddrBuf.array()); // String addr
result.put(strAddrBuf.array(), 0, strAddrLen); // String addr
result.put(stringWriter.toByteArray()); // String value

// reset strAddrBuf
strAddrLen = metaData.getStrFieldCnt();
strAddrBuf = ByteBuffer.allocate(strAddrLen).order(ByteOrder.LITTLE_ENDIAN);
return true;
}

Expand Down

0 comments on commit 527b08d

Please sign in to comment.