aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nimpb/nimpb.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nimpb/nimpb.nim b/src/nimpb/nimpb.nim
index d15bfc7..8156e64 100644
--- a/src/nimpb/nimpb.nim
+++ b/src/nimpb/nimpb.nim
@@ -174,10 +174,10 @@ proc zigzagDecode*(n: uint64): int64 =
template makeTag*(fieldNumber: int, wireType: WireType): Tag =
((fieldNumber shl 3).uint32 or wireType.uint32).Tag
-template getTagWireType*(tag: Tag): WireType =
+template wireType*(tag: Tag): WireType =
(tag.uint32 and WireTypeMask).WireType
-template getTagFieldNumber*(tag: Tag): int =
+template fieldNumber*(tag: Tag): int =
(tag.uint32 shr 3).int
proc writeTag*(stream: ProtobufStream, tag: Tag) =