Google.Protobuf.Collections.MapField.Codec

A codec for a specific map field.

Summary

This contains all the information required to encode and decode the nested messages.

Constructors and Destructors

Codec(FieldCodec< TKey > keyCodec, FieldCodec< TValue > valueCodec, uint mapTag)
Creates a new entry codec based on a separate key codec and value codec, and the tag to use for each map entry.

Properties

MapTag
uint
The tag used in the enclosing message to indicate map entries.

Properties

MapTag

uint MapTag

The tag used in the enclosing message to indicate map entries.

Public functions

Codec

 Codec(
  FieldCodec< TKey > keyCodec,
  FieldCodec< TValue > valueCodec,
  uint mapTag
)

Creates a new entry codec based on a separate key codec and value codec, and the tag to use for each map entry.

Details
Parameters
keyCodec
The key codec.
valueCodec
The value codec.
mapTag
The map tag to use to introduce each map entry.