Skip to content

Commit

Permalink
chore[generate]: format csharp code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Mar 5, 2024
1 parent 64a3526 commit ff8a320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol/src/main/resources/csharp/ProtocolTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public object Read(ByteBuffer buffer)
int beforeReadIndex = buffer.ReadOffset();
{} packet = new {}();
{}
if (length > 0) {
if (length > 0)
{
buffer.SetReadOffset(beforeReadIndex + length);
}
return packet;
Expand Down

0 comments on commit ff8a320

Please sign in to comment.