Skip to content

Commit

Permalink
Add compute size for Uint32 and Uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
cjaverliat committed Feb 28, 2024
1 parent 2957b5c commit d0687d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Runtime/BufferWriterExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ public static int ComputeInt64Size(long value)
{
return ComputeVarIntSize((ulong)value);
}

public static int ComputeUInt32Size(uint value)
{
return ComputeVarIntSize(value);
}

public static int ComputeUInt64Size(ulong value)
{
return ComputeVarIntSize(value);
}

public static int ComputeVarIntSize(ulong value)
{
Expand Down

0 comments on commit d0687d8

Please sign in to comment.