Skip to content

Commit

Permalink
ref[cpp]: rename writeBoolean/readBoolean/writeOffset/readOffset to w…
Browse files Browse the repository at this point in the history
…riteBool/readBool/getWriteOffset/getReadOffset
  • Loading branch information
jaysunxiao committed Jul 14, 2024
1 parent 9955010 commit d98de90
Show file tree
Hide file tree
Showing 10 changed files with 199 additions and 565 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private String protocol_write_serialization(ProtocolRegistration registration) {
var fieldRegistrations = registration.getFieldRegistrations();
var cppBuilder = new StringBuilder();
if (registration.isCompatible()) {
cppBuilder.append("auto beforeWriteIndex = buffer.writerIndex();").append(LS);
cppBuilder.append("auto beforeWriteIndex = buffer.getWriterOffset();").append(LS);
cppBuilder.append(StringUtils.format("buffer.writeInt({});", registration.getPredictionLength())).append(LS);
} else {
cppBuilder.append("buffer.writeInt(-1);").append(LS);
Expand Down
Loading

0 comments on commit d98de90

Please sign in to comment.