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 => Message ('Mut s) -> StreamResult ('Mut s) -> m (Maybe (Ptr ('Mut s))) Source #
fromPtr :: ReadCtx m msg => Message msg -> Maybe (Ptr msg) -> m (StreamResult msg) Source #
new :: WriteCtx m s => Message ('Mut s) -> m (StreamResult ('Mut s)) Source #
setIndex :: RWCtx m s => StreamResult ('Mut s) -> Int -> List ('Mut s) (StreamResult ('Mut s)) -> m () Source #
newList :: WriteCtx m s => Message ('Mut s) -> Int -> m (List ('Mut s) (StreamResult ('Mut s))) Source #
Associated Types
data List mut (StreamResult mut) Source #
listFromPtr :: ReadCtx m mut => Message mut -> Maybe (Ptr mut) -> m (List mut (StreamResult mut)) Source #
toUntypedList :: List mut (StreamResult mut) -> List mut Source #
length :: List mut (StreamResult mut) -> Int Source #
index :: ReadCtx m mut => Int -> List mut (StreamResult mut) -> m (StreamResult mut) Source #
messageDefault :: ReadCtx m mut => Message mut -> m (StreamResult mut) Source #
message :: StreamResult mut -> Message mut Source #