mirror of
https://github.com/zap-proto/erlang.git
synced 2026-10-30 15:05:14 +00:00
571 lines
27 KiB
Erlang
571 lines
27 KiB
Erlang
-file("test.capnp", 1).
|
|
|
|
%% This file was generated 2014-05-16 10:39:57 UTC by ecapnp 0.2.
|
|
%% http://github.com/kaos/ecapnp
|
|
-module(test_capnp).
|
|
|
|
-vsn(16752831063434032545).
|
|
|
|
-export([schema/1, testAnno/0, testAnno/1, '17364400218949434058'/0, 'Test'/0, 'Test'/1,
|
|
'18038429679936549741'/0, '12292473172826227401'/0, '9356761420570873088'/0,
|
|
'12591081617868223671'/0, 'Simple'/0, 'Simple'/1, '15091335337902283752'/0, 'ListTest'/0,
|
|
'ListTest'/1, '17083831967670695846'/0, 'BasicCap'/0, 'BasicCap'/1, '17521612982906909583'/0,
|
|
'16325444167000491107'/0, '16351184016261359411'/0, '13875996178202423621'/0,
|
|
'10419494484650272988'/0, 'Pipelines'/0, 'Pipelines'/1, '16031390312538156137'/0,
|
|
'14503907271725109646'/0, '14869749728248688780'/0, 'OtherCap'/0, 'OtherCap'/1,
|
|
'10376444823742217855'/0, '18397524501497330844'/0, '14954489407150623152'/0, 'ThirdCap'/0,
|
|
'ThirdCap'/1, '18123859541809896974'/0, '14187451716366646039'/0, '16272584843106476340'/0,
|
|
'CapTest'/0, 'CapTest'/1, '17442731430661771208'/0, 'UnionTest'/0, 'UnionTest'/1,
|
|
'16940705001995499374'/0, 'PackedListTest'/0, 'PackedListTest'/1, '14810986415762040486'/0,
|
|
'17446286598800356999'/0, root/0, root/1, '16752831063434032545'/0]).
|
|
|
|
-types([{17364400218949434058, testAnno}, {18038429679936549741, 'Test'},
|
|
{12292473172826227401, ['Test', meta]}, {9356761420570873088, ['Test', opts]},
|
|
{12591081617868223671, ['Test', groupField]}, {15091335337902283752, 'Simple'},
|
|
{17083831967670695846, 'ListTest'}, {17521612982906909583, 'BasicCap'},
|
|
{16325444167000491107, ['BasicCap', [sub, '$Results']]},
|
|
{16351184016261359411, ['BasicCap', [sub, '$Params']]},
|
|
{13875996178202423621, ['BasicCap', [add, '$Results']]},
|
|
{10419494484650272988, ['BasicCap', [add, '$Params']]}, {16031390312538156137, 'Pipelines'},
|
|
{14503907271725109646, ['Pipelines', [getBasic, '$Results']]},
|
|
{14869749728248688780, ['Pipelines', [getBasic, '$Params']]}, {10376444823742217855, 'OtherCap'},
|
|
{18397524501497330844, ['OtherCap', [sqroot, '$Results']]},
|
|
{14954489407150623152, ['OtherCap', [sqroot, '$Params']]}, {18123859541809896974, 'ThirdCap'},
|
|
{14187451716366646039, ['ThirdCap', [square, '$Results']]},
|
|
{16272584843106476340, ['ThirdCap', [square, '$Params']]}, {17442731430661771208, 'CapTest'},
|
|
{16940705001995499374, 'UnionTest'}, {14810986415762040486, 'PackedListTest'},
|
|
{17446286598800356999, ['PackedListTest', 'Opts']}, {16752831063434032545, root}]).
|
|
|
|
-file("/home/kaos/src/erl/libs/ecapnp/include/ecapnp_schema.hrl", 1).
|
|
|
|
-ecapnp_schema_version(3).
|
|
|
|
-record(schema_node,
|
|
{module, name, id = 0, src = <<>>, kind = file, annotations = [], nodes = [], scope = 0}).
|
|
|
|
-type({{record, schema_node},
|
|
[{typed_record_field, {record_field, 9, {atom, 9, module}},
|
|
{type, 9, union, [{atom, 9, undefined}, {type, 9, atom, []}]}},
|
|
{typed_record_field, {record_field, 10, {atom, 10, name}},
|
|
{type, 10, union,
|
|
[{atom, 10, undefined}, {remote_type, 10, [{atom, 10, ecapnp}, {atom, 10, type_name}, []]}]}},
|
|
{typed_record_field, {record_field, 11, {atom, 11, id}, {integer, 11, 0}},
|
|
{remote_type, 11, [{atom, 11, ecapnp}, {atom, 11, type_id}, []]}},
|
|
{typed_record_field, {record_field, 12, {atom, 12, src}, {bin, 12, []}},
|
|
{remote_type, 12, [{atom, 12, ecapnp}, {atom, 12, text}, []]}},
|
|
{typed_record_field, {record_field, 13, {atom, 13, kind}, {atom, 13, file}},
|
|
{remote_type, 13, [{atom, 13, ecapnp}, {atom, 13, schema_kind}, []]}},
|
|
{typed_record_field, {record_field, 14, {atom, 14, annotations}, {nil, 14}}, {type, 14, list, []}},
|
|
{typed_record_field, {record_field, 15, {atom, 15, nodes}, {nil, 15}},
|
|
{remote_type, 15, [{atom, 15, ecapnp}, {atom, 15, schema_nodes}, []]}},
|
|
{typed_record_field, {record_field, 16, {atom, 16, scope}, {integer, 16, 0}},
|
|
{remote_type, 16, [{atom, 16, ecapnp}, {atom, 16, type_id}, []]}}],
|
|
[]}).
|
|
|
|
-record(struct, {dsize = 0, psize = 0, esize = inlineComposite, union_field = none, fields = []}).
|
|
|
|
-type({{record, struct},
|
|
[{typed_record_field, {record_field, 21, {atom, 21, dsize}, {integer, 21, 0}},
|
|
{remote_type, 21, [{atom, 21, ecapnp}, {atom, 21, word_count}, []]}},
|
|
{typed_record_field, {record_field, 22, {atom, 22, psize}, {integer, 22, 0}},
|
|
{remote_type, 22, [{atom, 22, ecapnp}, {atom, 22, ptr_count}, []]}},
|
|
{typed_record_field, {record_field, 23, {atom, 23, esize}, {atom, 23, inlineComposite}},
|
|
{remote_type, 23, [{atom, 23, ecapnp}, {atom, 23, element_size}, []]}},
|
|
{typed_record_field, {record_field, 24, {atom, 24, union_field}, {atom, 24, none}},
|
|
{type, 24, union,
|
|
[{atom, 24, none}, {remote_type, 24, [{atom, 24, ecapnp}, {atom, 24, field_type}, []]}]}},
|
|
{typed_record_field, {record_field, 25, {atom, 25, fields}, {nil, 25}},
|
|
{remote_type, 25, [{atom, 25, ecapnp}, {atom, 25, struct_fields}, []]}}],
|
|
[]}).
|
|
|
|
-record(enum, {values = []}).
|
|
|
|
-type({{record, enum},
|
|
[{typed_record_field, {record_field, 30, {atom, 30, values}, {nil, 30}},
|
|
{remote_type, 30, [{atom, 30, ecapnp}, {atom, 30, enum_values}, []]}}],
|
|
[]}).
|
|
|
|
-record(interface, {extends = [], methods = []}).
|
|
|
|
-type({{record, interface},
|
|
[{typed_record_field, {record_field, 35, {atom, 35, extends}, {nil, 35}}, {type, 35, list, []}},
|
|
{typed_record_field, {record_field, 36, {atom, 36, methods}, {nil, 36}}, {type, 36, list, []}}],
|
|
[]}).
|
|
|
|
-record(const, {field}).
|
|
|
|
-record(annotation, {type, targets = []}).
|
|
|
|
-type({{record, annotation},
|
|
[{record_field, 46, {atom, 46, type}},
|
|
{typed_record_field, {record_field, 47, {atom, 47, targets}, {nil, 47}},
|
|
{type, 47, list, [{type, 47, atom, []}]}}],
|
|
[]}).
|
|
|
|
-record(field, {id, name, kind, annotations = []}).
|
|
|
|
-record(ptr, {type, idx = 0, default = null}).
|
|
|
|
-type({{record, ptr},
|
|
[{typed_record_field, {record_field, 60, {atom, 60, type}},
|
|
{type, 60, union, [{atom, 60, undefined}, {type, 60, term, []}]}},
|
|
{typed_record_field, {record_field, 61, {atom, 61, idx}, {integer, 61, 0}},
|
|
{remote_type, 61, [{atom, 61, ecapnp}, {atom, 61, ptr_index}, []]}},
|
|
{typed_record_field, {record_field, 62, {atom, 62, default}, {atom, 62, null}},
|
|
{remote_type, 62, [{atom, 62, ecapnp}, {atom, 62, value}, []]}}],
|
|
[]}).
|
|
|
|
-record(data, {type, align = 0, default}).
|
|
|
|
-type({{record, data},
|
|
[{typed_record_field, {record_field, 66, {atom, 66, type}},
|
|
{type, 66, union, [{atom, 66, undefined}, {type, 66, term, []}]}},
|
|
{typed_record_field, {record_field, 67, {atom, 67, align}, {integer, 67, 0}},
|
|
{remote_type, 67, [{atom, 67, ecapnp}, {atom, 67, bit_count}, []]}},
|
|
{typed_record_field, {record_field, 68, {atom, 68, default}},
|
|
{type, 68, union,
|
|
[{atom, 68, undefined}, {remote_type, 68, [{atom, 68, ecapnp}, {atom, 68, value}, []]}]}}],
|
|
[]}).
|
|
|
|
-record(group, {id = 0}).
|
|
|
|
-type({{record, group},
|
|
[{typed_record_field, {record_field, 72, {atom, 72, id}, {integer, 72, 0}},
|
|
{remote_type, 72, [{atom, 72, ecapnp}, {atom, 72, type_id}, []]}}],
|
|
[]}).
|
|
|
|
-record(method, {id, name, paramType, resultType}).
|
|
|
|
-file("test.capnp", 1).
|
|
|
|
schema(17364400218949434058) -> '17364400218949434058'();
|
|
schema(testAnno) -> '17364400218949434058'();
|
|
schema([testAnno]) -> '17364400218949434058'();
|
|
schema(18038429679936549741) -> '18038429679936549741'();
|
|
schema('Test') -> '18038429679936549741'();
|
|
schema(['Test']) -> '18038429679936549741'();
|
|
schema(12292473172826227401) -> '12292473172826227401'();
|
|
schema(['Test', meta]) -> '12292473172826227401'();
|
|
schema(9356761420570873088) -> '9356761420570873088'();
|
|
schema(['Test', opts]) -> '9356761420570873088'();
|
|
schema(12591081617868223671) -> '12591081617868223671'();
|
|
schema(['Test', groupField]) -> '12591081617868223671'();
|
|
schema(15091335337902283752) -> '15091335337902283752'();
|
|
schema('Simple') -> '15091335337902283752'();
|
|
schema(['Simple']) -> '15091335337902283752'();
|
|
schema(17083831967670695846) -> '17083831967670695846'();
|
|
schema('ListTest') -> '17083831967670695846'();
|
|
schema(['ListTest']) -> '17083831967670695846'();
|
|
schema(17521612982906909583) -> '17521612982906909583'();
|
|
schema('BasicCap') -> '17521612982906909583'();
|
|
schema(['BasicCap']) -> '17521612982906909583'();
|
|
schema(16325444167000491107) -> '16325444167000491107'();
|
|
schema(['BasicCap', [sub, '$Results']]) -> '16325444167000491107'();
|
|
schema(16351184016261359411) -> '16351184016261359411'();
|
|
schema(['BasicCap', [sub, '$Params']]) -> '16351184016261359411'();
|
|
schema(13875996178202423621) -> '13875996178202423621'();
|
|
schema(['BasicCap', [add, '$Results']]) -> '13875996178202423621'();
|
|
schema(10419494484650272988) -> '10419494484650272988'();
|
|
schema(['BasicCap', [add, '$Params']]) -> '10419494484650272988'();
|
|
schema(16031390312538156137) -> '16031390312538156137'();
|
|
schema('Pipelines') -> '16031390312538156137'();
|
|
schema(['Pipelines']) -> '16031390312538156137'();
|
|
schema(14503907271725109646) -> '14503907271725109646'();
|
|
schema(['Pipelines', [getBasic, '$Results']]) -> '14503907271725109646'();
|
|
schema(14869749728248688780) -> '14869749728248688780'();
|
|
schema(['Pipelines', [getBasic, '$Params']]) -> '14869749728248688780'();
|
|
schema(10376444823742217855) -> '10376444823742217855'();
|
|
schema('OtherCap') -> '10376444823742217855'();
|
|
schema(['OtherCap']) -> '10376444823742217855'();
|
|
schema(18397524501497330844) -> '18397524501497330844'();
|
|
schema(['OtherCap', [sqroot, '$Results']]) -> '18397524501497330844'();
|
|
schema(14954489407150623152) -> '14954489407150623152'();
|
|
schema(['OtherCap', [sqroot, '$Params']]) -> '14954489407150623152'();
|
|
schema(18123859541809896974) -> '18123859541809896974'();
|
|
schema('ThirdCap') -> '18123859541809896974'();
|
|
schema(['ThirdCap']) -> '18123859541809896974'();
|
|
schema(14187451716366646039) -> '14187451716366646039'();
|
|
schema(['ThirdCap', [square, '$Results']]) -> '14187451716366646039'();
|
|
schema(16272584843106476340) -> '16272584843106476340'();
|
|
schema(['ThirdCap', [square, '$Params']]) -> '16272584843106476340'();
|
|
schema(17442731430661771208) -> '17442731430661771208'();
|
|
schema('CapTest') -> '17442731430661771208'();
|
|
schema(['CapTest']) -> '17442731430661771208'();
|
|
schema(16940705001995499374) -> '16940705001995499374'();
|
|
schema('UnionTest') -> '16940705001995499374'();
|
|
schema(['UnionTest']) -> '16940705001995499374'();
|
|
schema(14810986415762040486) -> '14810986415762040486'();
|
|
schema('PackedListTest') -> '14810986415762040486'();
|
|
schema(['PackedListTest']) -> '14810986415762040486'();
|
|
schema(17446286598800356999) -> '17446286598800356999'();
|
|
schema(['PackedListTest', 'Opts']) -> '17446286598800356999'();
|
|
schema(16752831063434032545) -> '16752831063434032545'();
|
|
schema(root) -> '16752831063434032545'();
|
|
schema([root]) -> '16752831063434032545'();
|
|
schema(_) -> undefined.
|
|
|
|
root() -> '16752831063434032545'().
|
|
|
|
root([]) -> '16752831063434032545'().
|
|
|
|
'16752831063434032545'() ->
|
|
#schema_node{module = test_capnp, name = root, id = 16752831063434032545, scope = 0,
|
|
src = <<"test.capnp">>, annotations = [{17364400218949434058, <<"file anno 2013">>}], kind = file,
|
|
nodes =
|
|
[17364400218949434058, %% testAnno
|
|
18038429679936549741, %% Test
|
|
15091335337902283752, %% Simple
|
|
17083831967670695846, %% ListTest
|
|
17521612982906909583, %% BasicCap
|
|
16031390312538156137, %% Pipelines
|
|
10376444823742217855, %% OtherCap
|
|
18123859541809896974, %% ThirdCap
|
|
17442731430661771208, %% CapTest
|
|
16940705001995499374, %% UnionTest
|
|
14810986415762040486]}. %% PackedListTest
|
|
|
|
'PackedListTest'() -> '14810986415762040486'().
|
|
|
|
'PackedListTest'(['Opts']) -> '17446286598800356999'();
|
|
'PackedListTest'([]) -> '14810986415762040486'().
|
|
|
|
'14810986415762040486'() ->
|
|
#schema_node{module = test_capnp, name = 'PackedListTest', id = 14810986415762040486,
|
|
scope = 16752831063434032545, src = <<"test.capnp:PackedListTest">>,
|
|
kind =
|
|
#struct{dsize = 0, psize = 1, esize = pointer, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = packedList,
|
|
kind =
|
|
#ptr{type = {list, {struct, 17446286598800356999}}, idx = 0,
|
|
default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]},
|
|
nodes =
|
|
[17446286598800356999]}. %% Opts
|
|
|
|
'17446286598800356999'() ->
|
|
#schema_node{module = test_capnp, name = ['PackedListTest', 'Opts'], id = 17446286598800356999,
|
|
scope = 14810986415762040486, src = <<"test.capnp:PackedListTest.Opts">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 0, esize = twoBytes, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = flag, kind = #data{type = bool, align = 7, default = <<0:1>>}},
|
|
#field{id = 1, name = value, kind = #data{type = uint8, align = 8, default = <<0>>}},
|
|
#field{id = 2, name = toggle, kind = #data{type = bool, align = 6, default = <<0:1>>}}]}}.
|
|
|
|
'UnionTest'() -> '16940705001995499374'().
|
|
|
|
'UnionTest'([]) -> '16940705001995499374'().
|
|
|
|
'16940705001995499374'() ->
|
|
#schema_node{module = test_capnp, name = 'UnionTest', id = 16940705001995499374,
|
|
scope = 16752831063434032545, src = <<"test.capnp:UnionTest">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 1, esize = inlineComposite,
|
|
union_field =
|
|
#data{type =
|
|
{union,
|
|
[#field{id = 0, name = foo, kind = #data{type = bool, align = 7, default = <<0:1>>}},
|
|
#field{id = 1, name = test,
|
|
kind = #ptr{type = {struct, 18038429679936549741}, idx = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}},
|
|
#field{id = 2, name = any,
|
|
kind = #ptr{type = object, idx = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]},
|
|
align = 16, default = <<0, 0>>},
|
|
fields = []}}.
|
|
|
|
'CapTest'() -> '17442731430661771208'().
|
|
|
|
'CapTest'([]) -> '17442731430661771208'().
|
|
|
|
'17442731430661771208'() ->
|
|
#schema_node{module = test_capnp, name = 'CapTest', id = 17442731430661771208,
|
|
scope = 16752831063434032545, src = <<"test.capnp:CapTest">>,
|
|
kind =
|
|
#struct{dsize = 0, psize = 2, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = basic,
|
|
kind =
|
|
#ptr{type = {interface, 17521612982906909583}, idx = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}},
|
|
#field{id = 1, name = obj,
|
|
kind = #ptr{type = object, idx = 1, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'ThirdCap'() -> '18123859541809896974'().
|
|
|
|
'ThirdCap'([[square, '$Results']]) -> '14187451716366646039'();
|
|
'ThirdCap'([[square, '$Params']]) -> '16272584843106476340'();
|
|
'ThirdCap'([]) -> '18123859541809896974'().
|
|
|
|
'18123859541809896974'() ->
|
|
#schema_node{module = test_capnp, name = 'ThirdCap', id = 18123859541809896974,
|
|
scope = 16752831063434032545, src = <<"test.capnp:ThirdCap">>,
|
|
kind =
|
|
#interface{extends = [17521612982906909583, 10376444823742217855],
|
|
methods =
|
|
[#method{id = 0, name = square, paramType = 16272584843106476340,
|
|
resultType = 14187451716366646039}]}}.
|
|
|
|
'14187451716366646039'() ->
|
|
#schema_node{module = test_capnp, name = ['ThirdCap', [square, '$Results']],
|
|
id = 14187451716366646039, scope = 0, src = <<"test.capnp:ThirdCap.square$Results">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 0, esize = eightBytes, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = sq,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'16272584843106476340'() ->
|
|
#schema_node{module = test_capnp, name = ['ThirdCap', [square, '$Params']],
|
|
id = 16272584843106476340, scope = 0, src = <<"test.capnp:ThirdCap.square$Params">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 0, esize = eightBytes, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = a,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'OtherCap'() -> '10376444823742217855'().
|
|
|
|
'OtherCap'([[sqroot, '$Results']]) -> '18397524501497330844'();
|
|
'OtherCap'([[sqroot, '$Params']]) -> '14954489407150623152'();
|
|
'OtherCap'([]) -> '10376444823742217855'().
|
|
|
|
'10376444823742217855'() ->
|
|
#schema_node{module = test_capnp, name = 'OtherCap', id = 10376444823742217855,
|
|
scope = 16752831063434032545, src = <<"test.capnp:OtherCap">>,
|
|
kind =
|
|
#interface{extends = [],
|
|
methods =
|
|
[#method{id = 0, name = sqroot, paramType = 14954489407150623152,
|
|
resultType = 18397524501497330844}]}}.
|
|
|
|
'18397524501497330844'() ->
|
|
#schema_node{module = test_capnp, name = ['OtherCap', [sqroot, '$Results']],
|
|
id = 18397524501497330844, scope = 0, src = <<"test.capnp:OtherCap.sqroot$Results">>,
|
|
kind =
|
|
#struct{dsize = 2, psize = 0, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = root1,
|
|
kind = #data{type = float64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}},
|
|
#field{id = 1, name = root2,
|
|
kind = #data{type = float64, align = 64, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'14954489407150623152'() ->
|
|
#schema_node{module = test_capnp, name = ['OtherCap', [sqroot, '$Params']],
|
|
id = 14954489407150623152, scope = 0, src = <<"test.capnp:OtherCap.sqroot$Params">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 0, esize = eightBytes, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = a,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'Pipelines'() -> '16031390312538156137'().
|
|
|
|
'Pipelines'([[getBasic, '$Results']]) -> '14503907271725109646'();
|
|
'Pipelines'([[getBasic, '$Params']]) -> '14869749728248688780'();
|
|
'Pipelines'([]) -> '16031390312538156137'().
|
|
|
|
'16031390312538156137'() ->
|
|
#schema_node{module = test_capnp, name = 'Pipelines', id = 16031390312538156137,
|
|
scope = 16752831063434032545, src = <<"test.capnp:Pipelines">>,
|
|
kind =
|
|
#interface{extends = [],
|
|
methods =
|
|
[#method{id = 0, name = getBasic, paramType = 14869749728248688780,
|
|
resultType = 14503907271725109646}]}}.
|
|
|
|
'14503907271725109646'() ->
|
|
#schema_node{module = test_capnp, name = ['Pipelines', [getBasic, '$Results']],
|
|
id = 14503907271725109646, scope = 0, src = <<"test.capnp:Pipelines.getBasic$Results">>,
|
|
kind =
|
|
#struct{dsize = 0, psize = 1, esize = pointer, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = basic,
|
|
kind =
|
|
#ptr{type = {interface, 17521612982906909583}, idx = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'14869749728248688780'() ->
|
|
#schema_node{module = test_capnp, name = ['Pipelines', [getBasic, '$Params']],
|
|
id = 14869749728248688780, scope = 0, src = <<"test.capnp:Pipelines.getBasic$Params">>,
|
|
kind = #struct{dsize = 0, psize = 0, esize = empty, union_field = none, fields = []}}.
|
|
|
|
'BasicCap'() -> '17521612982906909583'().
|
|
|
|
'BasicCap'([[sub, '$Results']]) -> '16325444167000491107'();
|
|
'BasicCap'([[sub, '$Params']]) -> '16351184016261359411'();
|
|
'BasicCap'([[add, '$Results']]) -> '13875996178202423621'();
|
|
'BasicCap'([[add, '$Params']]) -> '10419494484650272988'();
|
|
'BasicCap'([]) -> '17521612982906909583'().
|
|
|
|
'17521612982906909583'() ->
|
|
#schema_node{module = test_capnp, name = 'BasicCap', id = 17521612982906909583,
|
|
scope = 16752831063434032545, src = <<"test.capnp:BasicCap">>,
|
|
kind =
|
|
#interface{extends = [],
|
|
methods =
|
|
[#method{id = 0, name = add, paramType = 10419494484650272988, resultType = 13875996178202423621},
|
|
#method{id = 1, name = sub, paramType = 16351184016261359411, resultType = 16325444167000491107}]}}.
|
|
|
|
'16325444167000491107'() ->
|
|
#schema_node{module = test_capnp, name = ['BasicCap', [sub, '$Results']], id = 16325444167000491107,
|
|
scope = 0, src = <<"test.capnp:BasicCap.sub$Results">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 0, esize = eightBytes, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = result,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'16351184016261359411'() ->
|
|
#schema_node{module = test_capnp, name = ['BasicCap', [sub, '$Params']], id = 16351184016261359411,
|
|
scope = 0, src = <<"test.capnp:BasicCap.sub$Params">>,
|
|
kind =
|
|
#struct{dsize = 2, psize = 0, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = a,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}},
|
|
#field{id = 1, name = b,
|
|
kind = #data{type = int64, align = 64, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'13875996178202423621'() ->
|
|
#schema_node{module = test_capnp, name = ['BasicCap', [add, '$Results']], id = 13875996178202423621,
|
|
scope = 0, src = <<"test.capnp:BasicCap.add$Results">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 0, esize = eightBytes, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = result,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'10419494484650272988'() ->
|
|
#schema_node{module = test_capnp, name = ['BasicCap', [add, '$Params']], id = 10419494484650272988,
|
|
scope = 0, src = <<"test.capnp:BasicCap.add$Params">>,
|
|
kind =
|
|
#struct{dsize = 2, psize = 0, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = a,
|
|
kind = #data{type = int64, align = 0, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}},
|
|
#field{id = 1, name = b,
|
|
kind = #data{type = int64, align = 64, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'ListTest'() -> '17083831967670695846'().
|
|
|
|
'ListTest'([]) -> '17083831967670695846'().
|
|
|
|
'17083831967670695846'() ->
|
|
#schema_node{module = test_capnp, name = 'ListTest', id = 17083831967670695846,
|
|
scope = 16752831063434032545, src = <<"test.capnp:ListTest">>,
|
|
kind =
|
|
#struct{dsize = 0, psize = 4, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = listInts,
|
|
kind =
|
|
#ptr{type = {list, int32}, idx = 0,
|
|
default = <<1, 0, 0, 0, 28, 0, 0, 0, 200, 1, 0, 0, 21, 3, 0, 0, 133, 255, 255, 255, 0, 0, 0, 0>>}},
|
|
#field{id = 1, name = listAny,
|
|
kind = #ptr{type = object, idx = 1, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}},
|
|
#field{id = 2, name = listSimples,
|
|
kind =
|
|
#ptr{type = {list, {struct, 15091335337902283752}}, idx = 2,
|
|
default =
|
|
<<1, 0, 0, 0, 55, 0, 0, 0, 8, 0, 0, 0, 1, 0, 2, 0, 223, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 50, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 102, 105, 114, 115, 116, 0, 0, 0, 115, 101, 99, 111, 110, 100, 0, 0>>}},
|
|
#field{id = 3, name = listText,
|
|
kind = #ptr{type = {list, text}, idx = 3, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'Simple'() -> '15091335337902283752'().
|
|
|
|
'Simple'([]) -> '15091335337902283752'().
|
|
|
|
'15091335337902283752'() ->
|
|
#schema_node{module = test_capnp, name = 'Simple', id = 15091335337902283752,
|
|
scope = 16752831063434032545, src = <<"test.capnp:Simple">>,
|
|
kind =
|
|
#struct{dsize = 1, psize = 2, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = message, kind = #ptr{type = text, idx = 0, default = <<"default message">>}},
|
|
#field{id = 1, name = value, kind = #data{type = uint32, align = 0, default = <<222, 0, 0, 0>>}},
|
|
#field{id = 2, name = simpleMessage,
|
|
kind = #ptr{type = text, idx = 1, default = <<"simple message">>}},
|
|
#field{id = 3, name = defaultValue,
|
|
kind = #data{type = uint32, align = 32, default = <<77, 1, 0, 0>>}}]}}.
|
|
|
|
'Test'() -> '18038429679936549741'().
|
|
|
|
'Test'([meta]) -> '12292473172826227401'();
|
|
'Test'([opts]) -> '9356761420570873088'();
|
|
'Test'([groupField]) -> '12591081617868223671'();
|
|
'Test'([]) -> '18038429679936549741'().
|
|
|
|
'18038429679936549741'() ->
|
|
#schema_node{module = test_capnp, name = 'Test', id = 18038429679936549741,
|
|
scope = 16752831063434032545, src = <<"test.capnp:Test">>,
|
|
annotations = [{17364400218949434058, <<"Test struct anno 2013 too">>}],
|
|
kind =
|
|
#struct{dsize = 2, psize = 6, esize = inlineComposite,
|
|
union_field =
|
|
#data{type =
|
|
{union,
|
|
[#field{id = 0, name = boolField, kind = #data{type = bool, align = 15, default = <<0:1>>}},
|
|
#field{id = 1, name = groupField, kind = #group{id = 12591081617868223671}}]},
|
|
align = 16, default = <<0, 0>>},
|
|
fields =
|
|
[#field{id = 0, name = intField, kind = #data{type = uint8, align = 0, default = <<33>>}},
|
|
#field{id = 1, name = textField, kind = #ptr{type = text, idx = 0, default = <<"test">>}},
|
|
#field{id = 2, name = opts, kind = #group{id = 9356761420570873088}},
|
|
#field{id = 3, name = meta, kind = #group{id = 12292473172826227401}},
|
|
#field{id = 4, name = structField,
|
|
kind =
|
|
#ptr{type = {struct, 15091335337902283752}, idx = 4, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'12292473172826227401'() ->
|
|
#schema_node{module = test_capnp, name = ['Test', meta], id = 12292473172826227401,
|
|
scope = 18038429679936549741, src = <<"test.capnp:Test.meta">>,
|
|
kind =
|
|
#struct{dsize = 2, psize = 6, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = id, kind = #data{type = uint16, align = 80, default = <<0, 0>>}},
|
|
#field{id = 1, name = tag, kind = #ptr{type = text, idx = 2, default = <<"">>}},
|
|
#field{id = 2, name = data, kind = #ptr{type = data, idx = 3, default = <<49, 50, 51, 52>>}},
|
|
#field{id = 3, name = struct,
|
|
kind =
|
|
#ptr{type = {struct, 15091335337902283752}, idx = 5,
|
|
default =
|
|
<<0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 12, 0, 0, 0, 5, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
111, 118, 101, 114, 114, 105, 100, 101, 110, 32, 100, 101, 102, 97, 117, 108, 116, 32, 109, 101,
|
|
115, 115, 97, 103, 101, 0, 0, 0, 0, 0, 0, 0>>}}]}}.
|
|
|
|
'9356761420570873088'() ->
|
|
#schema_node{module = test_capnp, name = ['Test', opts], id = 9356761420570873088,
|
|
scope = 18038429679936549741, src = <<"test.capnp:Test.opts">>,
|
|
kind =
|
|
#struct{dsize = 2, psize = 6, esize = inlineComposite,
|
|
union_field =
|
|
#data{type =
|
|
{union,
|
|
[#field{id = 0, name = bool, kind = #data{type = bool, align = 55, default = <<1:1>>}},
|
|
#field{id = 1, name = text, kind = #ptr{type = text, idx = 1, default = <<"">>}},
|
|
#field{id = 2, name = data, kind = #ptr{type = data, idx = 1, default = <<>>}},
|
|
#field{id = 3, name = object,
|
|
kind = #ptr{type = object, idx = 1, default = <<0, 0, 0, 0, 0, 0, 0, 0>>}}]},
|
|
align = 64, default = <<0, 0>>},
|
|
fields = []}}.
|
|
|
|
'12591081617868223671'() ->
|
|
#schema_node{module = test_capnp, name = ['Test', groupField], id = 12591081617868223671,
|
|
scope = 18038429679936549741, src = <<"test.capnp:Test.groupField">>,
|
|
kind =
|
|
#struct{dsize = 2, psize = 6, esize = inlineComposite, union_field = none,
|
|
fields =
|
|
[#field{id = 0, name = a, kind = #data{type = int8, align = 8, default = <<212>>}},
|
|
#field{id = 1, name = b, kind = #data{type = int8, align = 32, default = <<55>>}},
|
|
#field{id = 2, name = c, kind = #data{type = int8, align = 40, default = <<0>>}}]}}.
|
|
|
|
testAnno() -> '17364400218949434058'().
|
|
|
|
testAnno([]) -> '17364400218949434058'().
|
|
|
|
'17364400218949434058'() ->
|
|
#schema_node{module = test_capnp, name = testAnno, id = 17364400218949434058,
|
|
scope = 16752831063434032545, src = <<"test.capnp:testAnno">>,
|
|
kind =
|
|
#annotation{type = #ptr{type = text, idx = 0, default = <<>>},
|
|
targets =
|
|
[targetsFile, targetsConst, targetsEnum, targetsEnumerant, targetsStruct, targetsField,
|
|
targetsUnion, targetsGroup, targetsInterface, targetsMethod, targetsParam, targetsAnnotation]}}. |