protocol-buffers-1.7.9: Parse Google Protocol Buffer specifications

Text.ProtocolBuffers.Unknown

Description

This module add unknown field support to the library. There are no user API things here, except for advanced spelunking into the data structures which can and have changed with no notice. Importer beware.

Synopsis

Documentation

class UnknownMessage msg whereSource

Messages that can store unknown fields implement this interface. UnknownField is a supposedly opaque type.

wireSizeUnknownField :: UnknownField -> WireSizeSource

This is used by the generated code

wirePutUnknownField :: UnknownField -> PutSource

This is used by the generated code

catch'Unknown :: (Typeable a, UnknownMessage a) => (WireTag -> a -> Get a) -> WireTag -> a -> Get aSource

This is used by the generated code