Module ecapnp_set

Write support.

Copyright 2013, Andreas Stenius

Authors: Andreas Stenius (kaos@astekk.se).

Description

Write support.

Everything for writing data into a message.

Data Types

field_name()

field_name() = ecapnp:field_name()

field_value()

field_value() = ecapnp:field_value()

object()

object() = ecapnp:object()

schema()

schema() = ecapnp:schema()

schema_node()

schema_node() = ecapnp:schema_node()

type_name()

type_name() = ecapnp:type_name()

Function Index

field/2
field/3Write field value to object.
root/1Get root object for a new message.
root/2Get root object for a new message.
union/2Write unnamed union value in object.

Function Details

field/2

field(FieldName, Rpc_call) -> any()

field/3

field(FieldName::field_name(), Value::field_value(), Rpc_call::object()) -> ok | list()

Write field value to object.

root/1

root(Node::schema_node()) -> {ok, object()}

Get root object for a new message.

root/2

root(Type::type_name(), Schema::schema()) -> {ok, object()}

Get root object for a new message.

union/2

union(Value::{field_name(), field_value()} | field_name(), Rpc_call::object()) -> ok

Write unnamed union value in object.


Generated by EDoc, May 30 2014, 12:56:29.