Safe Haskell | None |
---|---|
Language | Haskell98 |
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.
- newtype UnknownField = UnknownField (Seq UnknownFieldValue)
- class UnknownMessage msg where
- data UnknownFieldValue = UFV !WireTag !ByteString
- wireSizeUnknownField :: UnknownField -> WireSize
- wirePutUnknownField :: UnknownField -> Put
- catch'Unknown :: (Typeable a, UnknownMessage a) => (WireTag -> a -> Get a) -> WireTag -> a -> Get a
Documentation
newtype UnknownField #
This is a suposedly opaque type
Constructors
UnknownField (Seq UnknownFieldValue) |
class UnknownMessage msg where #
Messages that can store unknown fields implement this interface. UnknownField is a supposedly opaque type.
Minimal complete definition
data UnknownFieldValue #
Constructors
UFV !WireTag !ByteString |
wireSizeUnknownField :: UnknownField -> WireSize #
This is used by the generated code
wirePutUnknownField :: UnknownField -> Put #
This is used by the generated code
catch'Unknown :: (Typeable a, UnknownMessage a) => (WireTag -> a -> Get a) -> WireTag -> a -> Get a #
This is used by the generated code