Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Module defining the individual base wire types (e.g. VarInt, Fixed64).
They are used to represent the unknownFields
within the proto message.
Upstream docs: https://developers.google.com/protocol-buffers/docs/encoding#structure
Synopsis
- newtype Tag = Tag {}
- data TaggedValue = TaggedValue !Tag !WireValue
- data WireValue
- = VarInt !Word64
- | Fixed64 !Word64
- | Lengthy !ByteString
- | StartGroup
- | EndGroup
- | Fixed32 !Word32
- type FieldSet = [TaggedValue]
- splitTypeAndTag :: Word64 -> (Tag, Word8)
- joinTypeAndTag :: Tag -> Word8 -> Word64
- parseFieldSet :: Parser FieldSet
- buildFieldSet :: FieldSet -> Builder
- buildMessageSet :: FieldSet -> Builder
- parseTaggedValueFromWire :: Word64 -> Parser TaggedValue
- parseMessageSetTaggedValueFromWire :: Word64 -> Parser TaggedValue
Documentation
A tag that identifies a particular field of the message when converting to/from the wire format.
data TaggedValue Source #
A pair of an encoded field and a value.
Instances
NFData TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire rnf :: TaggedValue -> () # | |
Eq TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire (==) :: TaggedValue -> TaggedValue -> Bool # (/=) :: TaggedValue -> TaggedValue -> Bool # | |
Ord TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire compare :: TaggedValue -> TaggedValue -> Ordering # (<) :: TaggedValue -> TaggedValue -> Bool # (<=) :: TaggedValue -> TaggedValue -> Bool # (>) :: TaggedValue -> TaggedValue -> Bool # (>=) :: TaggedValue -> TaggedValue -> Bool # max :: TaggedValue -> TaggedValue -> TaggedValue # min :: TaggedValue -> TaggedValue -> TaggedValue # |
The encoding of some unknown field on the wire.
type FieldSet = [TaggedValue] Source #
buildFieldSet :: FieldSet -> Builder Source #
buildMessageSet :: FieldSet -> Builder Source #