Companion

object Companion

Functions

Link copied to clipboard
fun of(fieldNumber: Int, wireType: Int): Tag

Creates a tag from a field number and a numeric wire type. This can be used to create invalid tags for testing purposes.

fun of(fieldNumber: FieldNumber, wireType: WireType): Tag

Creates a tag from a field number and a WireType.