ONC-RPC-0.1: ONC RPC (aka Sun RPC) and XDR library

Safe HaskellNone
LanguageHaskell2010

Network.ONCRPC.XDR.Opaque

Description

Marshalling values into and out of Opaque byte strings. Not really part of XDR, but convenient way to avoid many conversion functions.

Synopsis

Documentation

class Opaqued a where Source #

Values that can be stored in an Opaque ByteString. The default implementation allows (re-)embedding of XDR-encoded data, such as with Opaque_auth.

Methods

opacify :: a -> ByteString Source #

opacify :: XDR a => a -> ByteString Source #

unopacify :: Monad m => ByteString -> m a Source #

unopacify :: (XDR a, Monad m) => ByteString -> m a Source #