Capnp.Gen.Capnp.Stream
newtype StreamResult msg Source #
Constructors
Defined in Capnp.Gen.Capnp.Stream
Methods
toStruct :: StreamResult msg -> Struct msg Source #
fromStruct :: ReadCtx m msg => Struct msg -> m (StreamResult msg) Source #
toPtr :: WriteCtx m s => MutMsg s -> StreamResult (MutMsg s) -> m (Maybe (Ptr (MutMsg s))) Source #
fromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (StreamResult msg) Source #
new :: WriteCtx m s => MutMsg s -> m (StreamResult (MutMsg s)) Source #
setIndex :: RWCtx m s => StreamResult (MutMsg s) -> Int -> List (MutMsg s) (StreamResult (MutMsg s)) -> m () Source #
newList :: WriteCtx m s => MutMsg s -> Int -> m (List (MutMsg s) (StreamResult (MutMsg s))) Source #
Associated Types
data List msg (StreamResult msg) Source #
listFromPtr :: ReadCtx m msg => msg -> Maybe (Ptr msg) -> m (List msg (StreamResult msg)) Source #
toUntypedList :: List msg (StreamResult msg) -> List msg Source #
length :: List msg (StreamResult msg) -> Int Source #
index :: ReadCtx m msg => Int -> List msg (StreamResult msg) -> m (StreamResult msg) Source #
messageDefault :: InMessage (StreamResult msg) -> StreamResult msg Source #
type InMessage (StreamResult msg) Source #
message :: StreamResult msg -> InMessage (StreamResult msg) Source #