Skip to content

Commit

Permalink
[src] Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma711 committed Aug 19, 2023
1 parent 5f9f4a1 commit 06e1561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc_codec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ RpcCodec::ErrorCode RpcCodec::Parse(const char* buffer, int length,
ErrorCode error_code = ErrorCode::kNoError;
if (ValidateChecksum(buffer, length)) {
if (::memcmp(reinterpret_cast<const void*>(buffer), tag_.data(),
tag_.size()) == 0) { // Parse from the buffer
tag_.size()) == 0) { // Check the tag (the message type)
const char* data = buffer + tag_.size();
int32_t data_length =
length - kChecksumLength - static_cast<int32_t>(tag_.size());
Expand Down

0 comments on commit 06e1561

Please sign in to comment.