├── .flowconfig ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── gulpfile.babel.js ├── integration ├── .gitignore ├── schema │ ├── generic.capnp │ ├── group.capnp │ └── plain.capnp └── test │ ├── plain-b.js │ └── plain-r.js ├── package.json ├── src ├── Index.js ├── Printer.js ├── Visitor.js ├── bin │ └── flow.js ├── codeGeneratorRespond.js ├── schema.capnp-r.js ├── serialization │ ├── accumulateBuilderLibs.js │ ├── accumulateLocals.js │ ├── accumulateParameters.js │ ├── accumulateReaderLibs.js │ ├── accumulateUsers.js │ ├── accumulateValues.js │ ├── generate.js │ ├── libs.js │ ├── printBuilderBodies.js │ ├── printBuilderInstantiations.js │ ├── printReaderBodies.js │ └── printReaderInstantiations.js └── util │ ├── NonRepeats.js │ ├── capitalize.js │ ├── flatMap.js │ └── paramName.js └── test ├── .gitignore └── schema ├── const-bool.capnp ├── const-data.capnp ├── const-enum.capnp ├── const-float32.capnp ├── const-float64.capnp ├── const-genericStructBoolList.capnp ├── const-genericStructInt16List.capnp ├── const-genericStructStruct.capnp ├── const-genericStructText.capnp ├── const-int16.capnp ├── const-int32.capnp ├── const-int64.capnp ├── const-int8.capnp ├── const-listBool.capnp ├── const-listData.capnp ├── const-listFloat32.capnp ├── const-listFloat64.capnp ├── const-listInt16.capnp ├── const-listInt32.capnp ├── const-listInt64.capnp ├── const-listInt8.capnp ├── const-listText.capnp ├── const-listUint16.capnp ├── const-listUint32.capnp ├── const-listUint64.capnp ├── const-listUint8.capnp ├── const-listVoid.capnp ├── const-struct.capnp ├── const-text.capnp ├── const-uint16.capnp ├── const-uint32.capnp ├── const-uint64.capnp ├── const-uint8.capnp ├── const-void.capnp ├── defField-bool.capnp ├── defField-data.capnp ├── defField-enum.capnp ├── defField-float32.capnp ├── defField-float64.capnp ├── defField-genericStructBoolList.capnp ├── defField-genericStructInt16List.capnp ├── defField-genericStructStruct.capnp ├── defField-genericStructText.capnp ├── defField-int16.capnp ├── defField-int32.capnp ├── defField-int64.capnp ├── defField-int8.capnp ├── defField-listBool.capnp ├── defField-listData.capnp ├── defField-listFloat32.capnp ├── defField-listFloat64.capnp ├── defField-listInt16.capnp ├── defField-listInt32.capnp ├── defField-listInt64.capnp ├── defField-listInt8.capnp ├── defField-listText.capnp ├── defField-listUint16.capnp ├── defField-listUint32.capnp ├── defField-listUint64.capnp ├── defField-listUint8.capnp ├── defField-listVoid.capnp ├── defField-struct.capnp ├── defField-text.capnp ├── defField-uint16.capnp ├── defField-uint32.capnp ├── defField-uint64.capnp ├── defField-uint8.capnp ├── defField-void.capnp ├── field-bool.capnp ├── field-data.capnp ├── field-enum.capnp ├── field-float32.capnp ├── field-float64.capnp ├── field-genericStructBoolList.capnp ├── field-genericStructInt16List.capnp ├── field-genericStructStruct.capnp ├── field-genericStructText.capnp ├── field-int16.capnp ├── field-int32.capnp ├── field-int64.capnp ├── field-int8.capnp ├── field-listBool.capnp ├── field-listData.capnp ├── field-listFloat32.capnp ├── field-listFloat64.capnp ├── field-listInt16.capnp ├── field-listInt32.capnp ├── field-listInt64.capnp ├── field-listInt8.capnp ├── field-listText.capnp ├── field-listUint16.capnp ├── field-listUint32.capnp ├── field-listUint64.capnp ├── field-listUint8.capnp ├── field-listVoid.capnp ├── field-struct.capnp ├── field-text.capnp ├── field-uint16.capnp ├── field-uint32.capnp ├── field-uint64.capnp ├── field-uint8.capnp ├── field-void.capnp ├── union1.capnp └── union2.capnp /.flowconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/.flowconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /lib/ 2 | /node_modules/ 3 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/README.md -------------------------------------------------------------------------------- /gulpfile.babel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/gulpfile.babel.js -------------------------------------------------------------------------------- /integration/.gitignore: -------------------------------------------------------------------------------- 1 | /*.js 2 | -------------------------------------------------------------------------------- /integration/schema/generic.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/integration/schema/generic.capnp -------------------------------------------------------------------------------- /integration/schema/group.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/integration/schema/group.capnp -------------------------------------------------------------------------------- /integration/schema/plain.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/integration/schema/plain.capnp -------------------------------------------------------------------------------- /integration/test/plain-b.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/integration/test/plain-b.js -------------------------------------------------------------------------------- /integration/test/plain-r.js: -------------------------------------------------------------------------------- 1 | /* @flow */ 2 | 3 | import { Leaves } from "../plain.capnp-r"; 4 | 5 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/package.json -------------------------------------------------------------------------------- /src/Index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/Index.js -------------------------------------------------------------------------------- /src/Printer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/Printer.js -------------------------------------------------------------------------------- /src/Visitor.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/Visitor.js -------------------------------------------------------------------------------- /src/bin/flow.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/bin/flow.js -------------------------------------------------------------------------------- /src/codeGeneratorRespond.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/codeGeneratorRespond.js -------------------------------------------------------------------------------- /src/schema.capnp-r.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/schema.capnp-r.js -------------------------------------------------------------------------------- /src/serialization/accumulateBuilderLibs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/accumulateBuilderLibs.js -------------------------------------------------------------------------------- /src/serialization/accumulateLocals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/accumulateLocals.js -------------------------------------------------------------------------------- /src/serialization/accumulateParameters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/accumulateParameters.js -------------------------------------------------------------------------------- /src/serialization/accumulateReaderLibs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/accumulateReaderLibs.js -------------------------------------------------------------------------------- /src/serialization/accumulateUsers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/accumulateUsers.js -------------------------------------------------------------------------------- /src/serialization/accumulateValues.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/accumulateValues.js -------------------------------------------------------------------------------- /src/serialization/generate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/generate.js -------------------------------------------------------------------------------- /src/serialization/libs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/libs.js -------------------------------------------------------------------------------- /src/serialization/printBuilderBodies.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/printBuilderBodies.js -------------------------------------------------------------------------------- /src/serialization/printBuilderInstantiations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/printBuilderInstantiations.js -------------------------------------------------------------------------------- /src/serialization/printReaderBodies.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/printReaderBodies.js -------------------------------------------------------------------------------- /src/serialization/printReaderInstantiations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/serialization/printReaderInstantiations.js -------------------------------------------------------------------------------- /src/util/NonRepeats.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/util/NonRepeats.js -------------------------------------------------------------------------------- /src/util/capitalize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/util/capitalize.js -------------------------------------------------------------------------------- /src/util/flatMap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/util/flatMap.js -------------------------------------------------------------------------------- /src/util/paramName.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/src/util/paramName.js -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | /*.js 2 | -------------------------------------------------------------------------------- /test/schema/const-bool.capnp: -------------------------------------------------------------------------------- 1 | @0xcbcdf3ef3bc13413; 2 | 3 | const b :Bool = true; 4 | -------------------------------------------------------------------------------- /test/schema/const-data.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-data.capnp -------------------------------------------------------------------------------- /test/schema/const-enum.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-enum.capnp -------------------------------------------------------------------------------- /test/schema/const-float32.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-float32.capnp -------------------------------------------------------------------------------- /test/schema/const-float64.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-float64.capnp -------------------------------------------------------------------------------- /test/schema/const-genericStructBoolList.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-genericStructBoolList.capnp -------------------------------------------------------------------------------- /test/schema/const-genericStructInt16List.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-genericStructInt16List.capnp -------------------------------------------------------------------------------- /test/schema/const-genericStructStruct.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-genericStructStruct.capnp -------------------------------------------------------------------------------- /test/schema/const-genericStructText.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-genericStructText.capnp -------------------------------------------------------------------------------- /test/schema/const-int16.capnp: -------------------------------------------------------------------------------- 1 | @0x832f8171d7529e3f; 2 | 3 | const i16 :Int16 = 31724; 4 | -------------------------------------------------------------------------------- /test/schema/const-int32.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-int32.capnp -------------------------------------------------------------------------------- /test/schema/const-int64.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-int64.capnp -------------------------------------------------------------------------------- /test/schema/const-int8.capnp: -------------------------------------------------------------------------------- 1 | @0xec7a6ecb7c77a3db; 2 | 3 | const i8 :Int8 = 118; 4 | -------------------------------------------------------------------------------- /test/schema/const-listBool.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-listBool.capnp -------------------------------------------------------------------------------- /test/schema/const-listData.capnp: -------------------------------------------------------------------------------- 1 | @0xaa0a111bdb1eadf2; 2 | 3 | const dl :List(Data) = [0x"11 22", 0x"ab f1"]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listFloat32.capnp: -------------------------------------------------------------------------------- 1 | @0xd44182ff6e81dfa9; 2 | 3 | const fl :List(Float32) = [-19384.3768631, 1838223.23328742]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listFloat64.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-listFloat64.capnp -------------------------------------------------------------------------------- /test/schema/const-listInt16.capnp: -------------------------------------------------------------------------------- 1 | @0x8b4e0141fc8ec85c; 2 | 3 | const il :List(Int16) = [-29124, 12111, 148, -1]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listInt32.capnp: -------------------------------------------------------------------------------- 1 | @0xf8fb7617ff07cd6d; 2 | 3 | const il :List(Int32) = [-2147483520]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listInt64.capnp: -------------------------------------------------------------------------------- 1 | @0x8a883d02ebcfd051; 2 | 3 | const il :List(Int64) = [-9223372036854757000]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listInt8.capnp: -------------------------------------------------------------------------------- 1 | @0xc8d0e40b936e4a96; 2 | 3 | const il :List(Int8) = [-124, 111, 8, 9]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listText.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-listText.capnp -------------------------------------------------------------------------------- /test/schema/const-listUint16.capnp: -------------------------------------------------------------------------------- 1 | @0xff0fa2f5dc1c1ee9; 2 | 3 | const ul :List(UInt16) = [58124, 24132]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listUint32.capnp: -------------------------------------------------------------------------------- 1 | @0xd5e03fed06ed6376; 2 | 3 | const ul :List(UInt32) = [4247488839]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listUint64.capnp: -------------------------------------------------------------------------------- 1 | @0xf95521c4822f9dd2; 2 | 3 | const ul :List(UInt64) = [1838372520339857000]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listUint8.capnp: -------------------------------------------------------------------------------- 1 | @0xe4090931bba4865f; 2 | 3 | const ul :List(UInt8) = [108, 211]; 4 | -------------------------------------------------------------------------------- /test/schema/const-listVoid.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-listVoid.capnp -------------------------------------------------------------------------------- /test/schema/const-struct.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-struct.capnp -------------------------------------------------------------------------------- /test/schema/const-text.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-text.capnp -------------------------------------------------------------------------------- /test/schema/const-uint16.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/const-uint16.capnp -------------------------------------------------------------------------------- /test/schema/const-uint32.capnp: -------------------------------------------------------------------------------- 1 | @0xb44cddbd7bf4984d; 2 | 3 | const u32 : UInt32 = 4294963559; 4 | -------------------------------------------------------------------------------- /test/schema/const-uint64.capnp: -------------------------------------------------------------------------------- 1 | @0xe3fd7ed1a29806f6; 2 | 3 | const u64 :UInt64 = 18446744073705611000; 4 | -------------------------------------------------------------------------------- /test/schema/const-uint8.capnp: -------------------------------------------------------------------------------- 1 | @0xee4585fb699b1e41; 2 | 3 | const u8 :UInt8 = 253; 4 | -------------------------------------------------------------------------------- /test/schema/const-void.capnp: -------------------------------------------------------------------------------- 1 | @0xf6ecd93e3c444ba5; 2 | 3 | const v :Void = void; 4 | -------------------------------------------------------------------------------- /test/schema/defField-bool.capnp: -------------------------------------------------------------------------------- 1 | @0xeb7a7b886145a6fc; 2 | 3 | struct X { 4 | f @0 :Bool = false; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-data.capnp: -------------------------------------------------------------------------------- 1 | @0xc94e712f860f3c36; 2 | 3 | struct X { 4 | f @0 :Data = 0x"1b 3a"; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-enum.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-enum.capnp -------------------------------------------------------------------------------- /test/schema/defField-float32.capnp: -------------------------------------------------------------------------------- 1 | @0xe6ca4741aaff477c; 2 | 3 | struct X { 4 | f @0 :Float32 = 0.12844; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-float64.capnp: -------------------------------------------------------------------------------- 1 | @0xfd6a4b1b5eb70329; 2 | 3 | struct X { 4 | f @0 :Float64 = 12444.1855323; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-genericStructBoolList.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-genericStructBoolList.capnp -------------------------------------------------------------------------------- /test/schema/defField-genericStructInt16List.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-genericStructInt16List.capnp -------------------------------------------------------------------------------- /test/schema/defField-genericStructStruct.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-genericStructStruct.capnp -------------------------------------------------------------------------------- /test/schema/defField-genericStructText.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-genericStructText.capnp -------------------------------------------------------------------------------- /test/schema/defField-int16.capnp: -------------------------------------------------------------------------------- 1 | @0xc5d78592a2e45ba2; 2 | 3 | struct X { 4 | f @0 :Int16 = -28833; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-int32.capnp: -------------------------------------------------------------------------------- 1 | @0xab1b2fd5886f4001; 2 | 3 | struct X { 4 | f @0 :Int32 = 927348; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-int64.capnp: -------------------------------------------------------------------------------- 1 | @0x96fb3acfb193a51e; 2 | 3 | struct X { 4 | f @0 :Int64 = 476293292; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-int8.capnp: -------------------------------------------------------------------------------- 1 | @0xbc00fa0c15e3ee4c; 2 | 3 | struct X { 4 | f @0 :Int8 = -45; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listBool.capnp: -------------------------------------------------------------------------------- 1 | @0xcdcecfc610757335; 2 | 3 | struct X { 4 | f @0 :List(Bool) = [true, false]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listData.capnp: -------------------------------------------------------------------------------- 1 | @0xba225c84813d8322; 2 | 3 | struct X { 4 | f @0 :List(Data) = [0x"99 ba"]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listFloat32.capnp: -------------------------------------------------------------------------------- 1 | @0xf4bc188859ae9607; 2 | 3 | struct X { 4 | f @0 :List(Float32) = [-17631.33, 199.03]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listFloat64.capnp: -------------------------------------------------------------------------------- 1 | @0xf2c23659fc75f678; 2 | 3 | struct X { 4 | f @0 :List(Float64) = [-99327.2344]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listInt16.capnp: -------------------------------------------------------------------------------- 1 | @0x93b7261ab2b24388; 2 | 3 | struct X { 4 | f @0 :List(Int16) = [-12874, 9156]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listInt32.capnp: -------------------------------------------------------------------------------- 1 | @0xc6782f8751cca73f; 2 | 3 | struct X { 4 | f @0 :List(Int32) = [-9912, 11195]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listInt64.capnp: -------------------------------------------------------------------------------- 1 | @0xf74013e71c90f8a1; 2 | 3 | struct X { 4 | f @0 :List(Int64) = [1876434342223]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listInt8.capnp: -------------------------------------------------------------------------------- 1 | @0x8a7f32223263c72b; 2 | 3 | struct X { 4 | f @0 :List(Int8) = [-65, 12]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listText.capnp: -------------------------------------------------------------------------------- 1 | @0x88b5da7195ec61df; 2 | 3 | struct X { 4 | f @0 :List(Text) = ["yet another string"]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listUint16.capnp: -------------------------------------------------------------------------------- 1 | @0xc718e20bc4a517fe; 2 | 3 | struct X { 4 | f @0 :List(UInt16) = [55133, 339]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listUint32.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-listUint32.capnp -------------------------------------------------------------------------------- /test/schema/defField-listUint64.capnp: -------------------------------------------------------------------------------- 1 | @0xc688970246bbfcc2; 2 | 3 | struct X { 4 | f @0 :List(UInt64) = [6112644]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listUint8.capnp: -------------------------------------------------------------------------------- 1 | @0xa52973c956c1e3ad; 2 | 3 | struct X { 4 | f @0 :List(UInt8) = [21]; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-listVoid.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-listVoid.capnp -------------------------------------------------------------------------------- /test/schema/defField-struct.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/defField-struct.capnp -------------------------------------------------------------------------------- /test/schema/defField-text.capnp: -------------------------------------------------------------------------------- 1 | @0xc0915a54c72eb7da; 2 | 3 | struct X { 4 | f @0 :Text = "some text"; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-uint16.capnp: -------------------------------------------------------------------------------- 1 | @0xa3c29e36147eec1c; 2 | 3 | struct X { 4 | f @0 :UInt16 = 144; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-uint32.capnp: -------------------------------------------------------------------------------- 1 | @0xb03de9ad62d66f21; 2 | 3 | struct X { 4 | f @0 :UInt32 = 834843; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-uint64.capnp: -------------------------------------------------------------------------------- 1 | @0xfec45c9e79610f6b; 2 | 3 | struct X { 4 | f @0 :UInt64 = 6218333; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-uint8.capnp: -------------------------------------------------------------------------------- 1 | @0xb198bcccd3a3d30a; 2 | 3 | struct X { 4 | f @0 :UInt8 = 96; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/defField-void.capnp: -------------------------------------------------------------------------------- 1 | @0xd46a6fed2f8fb6ea; 2 | 3 | struct X { 4 | f @0 :Void = void; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-bool.capnp: -------------------------------------------------------------------------------- 1 | @0xeb7a7b886145a6fc; 2 | 3 | struct X { 4 | f @0 :Bool; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-data.capnp: -------------------------------------------------------------------------------- 1 | @0xc94e712f860f3c36; 2 | 3 | struct X { 4 | f @0 :Data; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-enum.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/field-enum.capnp -------------------------------------------------------------------------------- /test/schema/field-float32.capnp: -------------------------------------------------------------------------------- 1 | @0xe6ca4741aaff477c; 2 | 3 | struct X { 4 | f @0 :Float32; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-float64.capnp: -------------------------------------------------------------------------------- 1 | @0xfd6a4b1b5eb70329; 2 | 3 | struct X { 4 | f @0 :Float64; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-genericStructBoolList.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/field-genericStructBoolList.capnp -------------------------------------------------------------------------------- /test/schema/field-genericStructInt16List.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/field-genericStructInt16List.capnp -------------------------------------------------------------------------------- /test/schema/field-genericStructStruct.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/field-genericStructStruct.capnp -------------------------------------------------------------------------------- /test/schema/field-genericStructText.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/field-genericStructText.capnp -------------------------------------------------------------------------------- /test/schema/field-int16.capnp: -------------------------------------------------------------------------------- 1 | @0xc5d78592a2e45ba2; 2 | 3 | struct X { 4 | f @0 :Int16; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-int32.capnp: -------------------------------------------------------------------------------- 1 | @0xab1b2fd5886f4001; 2 | 3 | struct X { 4 | f @0 :Int32; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-int64.capnp: -------------------------------------------------------------------------------- 1 | @0x96fb3acfb193a51e; 2 | 3 | struct X { 4 | f @0 :Int64; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-int8.capnp: -------------------------------------------------------------------------------- 1 | @0xbc00fa0c15e3ee4c; 2 | 3 | struct X { 4 | f @0 :Int8; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listBool.capnp: -------------------------------------------------------------------------------- 1 | @0xcdcecfc610757335; 2 | 3 | struct X { 4 | f @0 :List(Bool); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listData.capnp: -------------------------------------------------------------------------------- 1 | @0xba225c84813d8322; 2 | 3 | struct X { 4 | f @0 :List(Data); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listFloat32.capnp: -------------------------------------------------------------------------------- 1 | @0xf4bc188859ae9607; 2 | 3 | struct X { 4 | f @0 :List(Float32); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listFloat64.capnp: -------------------------------------------------------------------------------- 1 | @0xf2c23659fc75f678; 2 | 3 | struct X { 4 | f @0 :List(Float64); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listInt16.capnp: -------------------------------------------------------------------------------- 1 | @0x93b7261ab2b24388; 2 | 3 | struct X { 4 | f @0 :List(Int16); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listInt32.capnp: -------------------------------------------------------------------------------- 1 | @0xc6782f8751cca73f; 2 | 3 | struct X { 4 | f @0 :List(Int32); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listInt64.capnp: -------------------------------------------------------------------------------- 1 | @0xf74013e71c90f8a1; 2 | 3 | struct X { 4 | f @0 :List(Int64); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listInt8.capnp: -------------------------------------------------------------------------------- 1 | @0x8a7f32223263c72b; 2 | 3 | struct X { 4 | f @0 :List(Int8); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listText.capnp: -------------------------------------------------------------------------------- 1 | @0x88b5da7195ec61df; 2 | 3 | struct X { 4 | f @0 :List(Text); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listUint16.capnp: -------------------------------------------------------------------------------- 1 | @0xc718e20bc4a517fe; 2 | 3 | struct X { 4 | f @0 :List(UInt16); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listUint32.capnp: -------------------------------------------------------------------------------- 1 | @0xb3f61a3e646314ae; 2 | 3 | struct X { 4 | f @0 :List(UInt32); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listUint64.capnp: -------------------------------------------------------------------------------- 1 | @0xc688970246bbfcc2; 2 | 3 | struct X { 4 | f @0 :List(UInt64); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listUint8.capnp: -------------------------------------------------------------------------------- 1 | @0xa52973c956c1e3ad; 2 | 3 | struct X { 4 | f @0 :List(UInt8); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-listVoid.capnp: -------------------------------------------------------------------------------- 1 | @0xeef4aecb33383bc1; 2 | 3 | struct X { 4 | f @0 :List(Void); 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-struct.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/field-struct.capnp -------------------------------------------------------------------------------- /test/schema/field-text.capnp: -------------------------------------------------------------------------------- 1 | @0xc0915a54c72eb7da; 2 | 3 | struct X { 4 | f @0 :Text; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-uint16.capnp: -------------------------------------------------------------------------------- 1 | @0xa3c29e36147eec1c; 2 | 3 | struct X { 4 | f @0 :UInt16; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-uint32.capnp: -------------------------------------------------------------------------------- 1 | @0xb03de9ad62d66f21; 2 | 3 | struct X { 4 | f @0 :UInt32; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-uint64.capnp: -------------------------------------------------------------------------------- 1 | @0xfec45c9e79610f6b; 2 | 3 | struct X { 4 | f @0 :UInt64; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-uint8.capnp: -------------------------------------------------------------------------------- 1 | @0xb198bcccd3a3d30a; 2 | 3 | struct X { 4 | f @0 :UInt8; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/field-void.capnp: -------------------------------------------------------------------------------- 1 | @0xd46a6fed2f8fb6ea; 2 | 3 | struct X { 4 | f @0 :Void; 5 | } 6 | -------------------------------------------------------------------------------- /test/schema/union1.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/union1.capnp -------------------------------------------------------------------------------- /test/schema/union2.capnp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/capnp-js/plugin/HEAD/test/schema/union2.capnp --------------------------------------------------------------------------------