Pulled Fork Origin

This commit is contained in:
TheJoKlLa 2023-01-31 00:14:54 +01:00
commit e74332bb3a
14 changed files with 519 additions and 192 deletions

View File

@ -9,7 +9,7 @@
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" /> <PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
<PackageReference Include="Capnp.Net.Runtime" Version="1.3.97-g4f0abaac73" /> <PackageReference Include="Capnp.Net.Runtime" Version="1.3.97-g4f0abaac73" />
<PackageReference Include="CapnpC.CSharp.MsBuild.Generation" Version="1.3.97-g4f0abaac73" /> <PackageReference Include="CapnpC.CSharp.MsBuild.Generation" Version="1.3.97-g4f0abaac73" />
<PackageReference Include="Google.Protobuf" Version="3.11.3" /> <PackageReference Include="Google.Protobuf" Version="3.15.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.27.0" /> <PackageReference Include="Grpc.Net.Client" Version="2.27.0" />
<PackageReference Include="Grpc.Tools" Version="2.27.0"> <PackageReference Include="Grpc.Tools" Version="2.27.0">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="local" value="..\GeneratedNuGetPackages\"/>
</packageSources>
</configuration>

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="local" value="..\GeneratedNuGetPackages\"/>
</packageSources>
</configuration>

View File

@ -642,6 +642,31 @@ namespace Capnp
return cons(StructReadPointer(index)); return cons(StructReadPointer(index));
} }
/// <summary>
/// Convenience method. Given this state represents a struct, determines if a field is non-null.
/// </summary>
/// <param name="index">index within this struct's pointer table</param>
/// <returns>true if the field is non-null, false otherwise</returns>
/// <exception cref="IndexOutOfRangeException">negative or too large index</exception>
/// <exception cref="DeserializationException">state does not represent a struct, invalid pointer,
/// non-struct pointer</exception>
public bool IsStructFieldNonNull(int index)
{
if (Kind != ObjectKind.Struct && Kind != ObjectKind.Nil)
{
throw new DeserializationException("This is not a struct");
}
if (index < 0 || index >= StructPtrCount)
{
throw new IndexOutOfRangeException($"Invalid index {index}. Must be [0, {StructPtrCount}).");
}
var pointerOffset = index + StructDataCount;
WirePointer pointer = CurrentSegment[Offset + pointerOffset];
return !pointer.IsNull;
}
/// <summary> /// <summary>
/// Given this state represents a capability, returns its index into the capability table. /// Given this state represents a capability, returns its index into the capability table.
/// </summary> /// </summary>

View File

@ -325,24 +325,42 @@ namespace Capnproto_test.Capnp.Test
public string TextField => ctx.ReadText(0, null); public string TextField => ctx.ReadText(0, null);
public IReadOnlyList<byte> DataField => ctx.ReadList(1).CastByte(); public IReadOnlyList<byte> DataField => ctx.ReadList(1).CastByte();
public Capnproto_test.Capnp.Test.TestAllTypes.READER StructField => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestAllTypes.READER.create); public Capnproto_test.Capnp.Test.TestAllTypes.READER StructField => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestAllTypes.READER.create);
public bool HasStructField => ctx.IsStructFieldNonNull(2);
public Capnproto_test.Capnp.Test.TestEnum EnumField => (Capnproto_test.Capnp.Test.TestEnum)ctx.ReadDataUShort(288UL, (ushort)0); public Capnproto_test.Capnp.Test.TestEnum EnumField => (Capnproto_test.Capnp.Test.TestEnum)ctx.ReadDataUShort(288UL, (ushort)0);
public int VoidList => ctx.ReadList(3).Count; public int VoidList => ctx.ReadList(3).Count;
public bool HasVoidList => ctx.IsStructFieldNonNull(3);
public IReadOnlyList<bool> BoolList => ctx.ReadList(4).CastBool(); public IReadOnlyList<bool> BoolList => ctx.ReadList(4).CastBool();
public bool HasBoolList => ctx.IsStructFieldNonNull(4);
public IReadOnlyList<sbyte> Int8List => ctx.ReadList(5).CastSByte(); public IReadOnlyList<sbyte> Int8List => ctx.ReadList(5).CastSByte();
public bool HasInt8List => ctx.IsStructFieldNonNull(5);
public IReadOnlyList<short> Int16List => ctx.ReadList(6).CastShort(); public IReadOnlyList<short> Int16List => ctx.ReadList(6).CastShort();
public bool HasInt16List => ctx.IsStructFieldNonNull(6);
public IReadOnlyList<int> Int32List => ctx.ReadList(7).CastInt(); public IReadOnlyList<int> Int32List => ctx.ReadList(7).CastInt();
public bool HasInt32List => ctx.IsStructFieldNonNull(7);
public IReadOnlyList<long> Int64List => ctx.ReadList(8).CastLong(); public IReadOnlyList<long> Int64List => ctx.ReadList(8).CastLong();
public bool HasInt64List => ctx.IsStructFieldNonNull(8);
public IReadOnlyList<byte> UInt8List => ctx.ReadList(9).CastByte(); public IReadOnlyList<byte> UInt8List => ctx.ReadList(9).CastByte();
public bool HasUInt8List => ctx.IsStructFieldNonNull(9);
public IReadOnlyList<ushort> UInt16List => ctx.ReadList(10).CastUShort(); public IReadOnlyList<ushort> UInt16List => ctx.ReadList(10).CastUShort();
public bool HasUInt16List => ctx.IsStructFieldNonNull(10);
public IReadOnlyList<uint> UInt32List => ctx.ReadList(11).CastUInt(); public IReadOnlyList<uint> UInt32List => ctx.ReadList(11).CastUInt();
public bool HasUInt32List => ctx.IsStructFieldNonNull(11);
public IReadOnlyList<ulong> UInt64List => ctx.ReadList(12).CastULong(); public IReadOnlyList<ulong> UInt64List => ctx.ReadList(12).CastULong();
public bool HasUInt64List => ctx.IsStructFieldNonNull(12);
public IReadOnlyList<float> Float32List => ctx.ReadList(13).CastFloat(); public IReadOnlyList<float> Float32List => ctx.ReadList(13).CastFloat();
public bool HasFloat32List => ctx.IsStructFieldNonNull(13);
public IReadOnlyList<double> Float64List => ctx.ReadList(14).CastDouble(); public IReadOnlyList<double> Float64List => ctx.ReadList(14).CastDouble();
public bool HasFloat64List => ctx.IsStructFieldNonNull(14);
public IReadOnlyList<string> TextList => ctx.ReadList(15).CastText2(); public IReadOnlyList<string> TextList => ctx.ReadList(15).CastText2();
public bool HasTextList => ctx.IsStructFieldNonNull(15);
public IReadOnlyList<IReadOnlyList<byte>> DataList => ctx.ReadList(16).CastData(); public IReadOnlyList<IReadOnlyList<byte>> DataList => ctx.ReadList(16).CastData();
public bool HasDataList => ctx.IsStructFieldNonNull(16);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestAllTypes.READER> StructList => ctx.ReadList(17).Cast(Capnproto_test.Capnp.Test.TestAllTypes.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestAllTypes.READER> StructList => ctx.ReadList(17).Cast(Capnproto_test.Capnp.Test.TestAllTypes.READER.create);
public bool HasStructList => ctx.IsStructFieldNonNull(17);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestEnum> EnumList => ctx.ReadList(18).CastEnums(_0 => (Capnproto_test.Capnp.Test.TestEnum)_0); public IReadOnlyList<Capnproto_test.Capnp.Test.TestEnum> EnumList => ctx.ReadList(18).CastEnums(_0 => (Capnproto_test.Capnp.Test.TestEnum)_0);
public bool HasEnumList => ctx.IsStructFieldNonNull(18);
public int InterfaceList => ctx.ReadList(19).Count; public int InterfaceList => ctx.ReadList(19).Count;
public bool HasInterfaceList => ctx.IsStructFieldNonNull(19);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -897,24 +915,42 @@ namespace Capnproto_test.Capnp.Test
public string TextField => ctx.ReadText(0, "foo"); public string TextField => ctx.ReadText(0, "foo");
public IReadOnlyList<byte> DataField => ctx.ReadList(1).CastByte(); public IReadOnlyList<byte> DataField => ctx.ReadList(1).CastByte();
public Capnproto_test.Capnp.Test.TestAllTypes.READER StructField => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestAllTypes.READER.create); public Capnproto_test.Capnp.Test.TestAllTypes.READER StructField => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestAllTypes.READER.create);
public bool HasStructField => ctx.IsStructFieldNonNull(2);
public Capnproto_test.Capnp.Test.TestEnum EnumField => (Capnproto_test.Capnp.Test.TestEnum)ctx.ReadDataUShort(288UL, (ushort)5); public Capnproto_test.Capnp.Test.TestEnum EnumField => (Capnproto_test.Capnp.Test.TestEnum)ctx.ReadDataUShort(288UL, (ushort)5);
public int VoidList => ctx.ReadList(3).Count; public int VoidList => ctx.ReadList(3).Count;
public bool HasVoidList => ctx.IsStructFieldNonNull(3);
public IReadOnlyList<bool> BoolList => ctx.ReadList(4).CastBool(); public IReadOnlyList<bool> BoolList => ctx.ReadList(4).CastBool();
public bool HasBoolList => ctx.IsStructFieldNonNull(4);
public IReadOnlyList<sbyte> Int8List => ctx.ReadList(5).CastSByte(); public IReadOnlyList<sbyte> Int8List => ctx.ReadList(5).CastSByte();
public bool HasInt8List => ctx.IsStructFieldNonNull(5);
public IReadOnlyList<short> Int16List => ctx.ReadList(6).CastShort(); public IReadOnlyList<short> Int16List => ctx.ReadList(6).CastShort();
public bool HasInt16List => ctx.IsStructFieldNonNull(6);
public IReadOnlyList<int> Int32List => ctx.ReadList(7).CastInt(); public IReadOnlyList<int> Int32List => ctx.ReadList(7).CastInt();
public bool HasInt32List => ctx.IsStructFieldNonNull(7);
public IReadOnlyList<long> Int64List => ctx.ReadList(8).CastLong(); public IReadOnlyList<long> Int64List => ctx.ReadList(8).CastLong();
public bool HasInt64List => ctx.IsStructFieldNonNull(8);
public IReadOnlyList<byte> UInt8List => ctx.ReadList(9).CastByte(); public IReadOnlyList<byte> UInt8List => ctx.ReadList(9).CastByte();
public bool HasUInt8List => ctx.IsStructFieldNonNull(9);
public IReadOnlyList<ushort> UInt16List => ctx.ReadList(10).CastUShort(); public IReadOnlyList<ushort> UInt16List => ctx.ReadList(10).CastUShort();
public bool HasUInt16List => ctx.IsStructFieldNonNull(10);
public IReadOnlyList<uint> UInt32List => ctx.ReadList(11).CastUInt(); public IReadOnlyList<uint> UInt32List => ctx.ReadList(11).CastUInt();
public bool HasUInt32List => ctx.IsStructFieldNonNull(11);
public IReadOnlyList<ulong> UInt64List => ctx.ReadList(12).CastULong(); public IReadOnlyList<ulong> UInt64List => ctx.ReadList(12).CastULong();
public bool HasUInt64List => ctx.IsStructFieldNonNull(12);
public IReadOnlyList<float> Float32List => ctx.ReadList(13).CastFloat(); public IReadOnlyList<float> Float32List => ctx.ReadList(13).CastFloat();
public bool HasFloat32List => ctx.IsStructFieldNonNull(13);
public IReadOnlyList<double> Float64List => ctx.ReadList(14).CastDouble(); public IReadOnlyList<double> Float64List => ctx.ReadList(14).CastDouble();
public bool HasFloat64List => ctx.IsStructFieldNonNull(14);
public IReadOnlyList<string> TextList => ctx.ReadList(15).CastText2(); public IReadOnlyList<string> TextList => ctx.ReadList(15).CastText2();
public bool HasTextList => ctx.IsStructFieldNonNull(15);
public IReadOnlyList<IReadOnlyList<byte>> DataList => ctx.ReadList(16).CastData(); public IReadOnlyList<IReadOnlyList<byte>> DataList => ctx.ReadList(16).CastData();
public bool HasDataList => ctx.IsStructFieldNonNull(16);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestAllTypes.READER> StructList => ctx.ReadList(17).Cast(Capnproto_test.Capnp.Test.TestAllTypes.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestAllTypes.READER> StructList => ctx.ReadList(17).Cast(Capnproto_test.Capnp.Test.TestAllTypes.READER.create);
public bool HasStructList => ctx.IsStructFieldNonNull(17);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestEnum> EnumList => ctx.ReadList(18).CastEnums(_0 => (Capnproto_test.Capnp.Test.TestEnum)_0); public IReadOnlyList<Capnproto_test.Capnp.Test.TestEnum> EnumList => ctx.ReadList(18).CastEnums(_0 => (Capnproto_test.Capnp.Test.TestEnum)_0);
public bool HasEnumList => ctx.IsStructFieldNonNull(18);
public int InterfaceList => ctx.ReadList(19).Count; public int InterfaceList => ctx.ReadList(19).Count;
public bool HasInterfaceList => ctx.IsStructFieldNonNull(19);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -4868,9 +4904,13 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestUnion.READER S16s8s64s8Set => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestUnion.READER.create); public Capnproto_test.Capnp.Test.TestUnion.READER S16s8s64s8Set => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestUnion.READER.create);
public bool HasS16s8s64s8Set => ctx.IsStructFieldNonNull(0);
public Capnproto_test.Capnp.Test.TestUnion.READER S0sps1s32Set => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestUnion.READER.create); public Capnproto_test.Capnp.Test.TestUnion.READER S0sps1s32Set => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestUnion.READER.create);
public bool HasS0sps1s32Set => ctx.IsStructFieldNonNull(1);
public Capnproto_test.Capnp.Test.TestUnnamedUnion.READER Unnamed1 => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestUnnamedUnion.READER.create); public Capnproto_test.Capnp.Test.TestUnnamedUnion.READER Unnamed1 => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestUnnamedUnion.READER.create);
public bool HasUnnamed1 => ctx.IsStructFieldNonNull(2);
public Capnproto_test.Capnp.Test.TestUnnamedUnion.READER Unnamed2 => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestUnnamedUnion.READER.create); public Capnproto_test.Capnp.Test.TestUnnamedUnion.READER Unnamed2 => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestUnnamedUnion.READER.create);
public bool HasUnnamed2 => ctx.IsStructFieldNonNull(3);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -4967,6 +5007,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.READER TheNestedStruct => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.READER.create); public Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.READER TheNestedStruct => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.READER.create);
public bool HasTheNestedStruct => ctx.IsStructFieldNonNull(0);
public Capnproto_test.Capnp.Test.TestNestedTypes.NestedEnum OuterNestedEnum => (Capnproto_test.Capnp.Test.TestNestedTypes.NestedEnum)ctx.ReadDataUShort(0UL, (ushort)1); public Capnproto_test.Capnp.Test.TestNestedTypes.NestedEnum OuterNestedEnum => (Capnproto_test.Capnp.Test.TestNestedTypes.NestedEnum)ctx.ReadDataUShort(0UL, (ushort)1);
public Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.NestedEnum InnerNestedEnum => (Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.NestedEnum)ctx.ReadDataUShort(16UL, (ushort)2); public Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.NestedEnum InnerNestedEnum => (Capnproto_test.Capnp.Test.TestNestedTypes.NestedStruct.NestedEnum)ctx.ReadDataUShort(16UL, (ushort)2);
} }
@ -5282,15 +5323,25 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct0.READER> List0 => ctx.ReadList(0).Cast(Capnproto_test.Capnp.Test.TestLists.Struct0.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct0.READER> List0 => ctx.ReadList(0).Cast(Capnproto_test.Capnp.Test.TestLists.Struct0.READER.create);
public bool HasList0 => ctx.IsStructFieldNonNull(0);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct1.READER> List1 => ctx.ReadList(1).Cast(Capnproto_test.Capnp.Test.TestLists.Struct1.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct1.READER> List1 => ctx.ReadList(1).Cast(Capnproto_test.Capnp.Test.TestLists.Struct1.READER.create);
public bool HasList1 => ctx.IsStructFieldNonNull(1);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct8.READER> List8 => ctx.ReadList(2).Cast(Capnproto_test.Capnp.Test.TestLists.Struct8.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct8.READER> List8 => ctx.ReadList(2).Cast(Capnproto_test.Capnp.Test.TestLists.Struct8.READER.create);
public bool HasList8 => ctx.IsStructFieldNonNull(2);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct16.READER> List16 => ctx.ReadList(3).Cast(Capnproto_test.Capnp.Test.TestLists.Struct16.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct16.READER> List16 => ctx.ReadList(3).Cast(Capnproto_test.Capnp.Test.TestLists.Struct16.READER.create);
public bool HasList16 => ctx.IsStructFieldNonNull(3);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct32.READER> List32 => ctx.ReadList(4).Cast(Capnproto_test.Capnp.Test.TestLists.Struct32.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct32.READER> List32 => ctx.ReadList(4).Cast(Capnproto_test.Capnp.Test.TestLists.Struct32.READER.create);
public bool HasList32 => ctx.IsStructFieldNonNull(4);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct64.READER> List64 => ctx.ReadList(5).Cast(Capnproto_test.Capnp.Test.TestLists.Struct64.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.Struct64.READER> List64 => ctx.ReadList(5).Cast(Capnproto_test.Capnp.Test.TestLists.Struct64.READER.create);
public bool HasList64 => ctx.IsStructFieldNonNull(5);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.StructP.READER> ListP => ctx.ReadList(6).Cast(Capnproto_test.Capnp.Test.TestLists.StructP.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestLists.StructP.READER> ListP => ctx.ReadList(6).Cast(Capnproto_test.Capnp.Test.TestLists.StructP.READER.create);
public bool HasListP => ctx.IsStructFieldNonNull(6);
public IReadOnlyList<IReadOnlyList<int>> Int32ListList => ctx.ReadList(7).Cast(_0 => _0.RequireList().CastInt()); public IReadOnlyList<IReadOnlyList<int>> Int32ListList => ctx.ReadList(7).Cast(_0 => _0.RequireList().CastInt());
public bool HasInt32ListList => ctx.IsStructFieldNonNull(7);
public IReadOnlyList<IReadOnlyList<string>> TextListList => ctx.ReadList(8).Cast(_0 => _0.RequireList().CastText2()); public IReadOnlyList<IReadOnlyList<string>> TextListList => ctx.ReadList(8).Cast(_0 => _0.RequireList().CastText2());
public bool HasTextListList => ctx.IsStructFieldNonNull(8);
public IReadOnlyList<IReadOnlyList<Capnproto_test.Capnp.Test.TestAllTypes.READER>> StructListList => ctx.ReadList(9).Cast(_0 => _0.RequireList().Cast(Capnproto_test.Capnp.Test.TestAllTypes.READER.create)); public IReadOnlyList<IReadOnlyList<Capnproto_test.Capnp.Test.TestAllTypes.READER>> StructListList => ctx.ReadList(9).Cast(_0 => _0.RequireList().Cast(Capnproto_test.Capnp.Test.TestAllTypes.READER.create));
public bool HasStructListList => ctx.IsStructFieldNonNull(9);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -6436,6 +6487,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestLists.READER Lists => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestLists.READER.create); public Capnproto_test.Capnp.Test.TestLists.READER Lists => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestLists.READER.create);
public bool HasLists => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -6696,6 +6748,7 @@ namespace Capnproto_test.Capnp.Test
public WHICH which => (WHICH)ctx.ReadDataUShort(48U, (ushort)0); public WHICH which => (WHICH)ctx.ReadDataUShort(48U, (ushort)0);
public string Qux => which == WHICH.Qux ? ctx.ReadText(1, null) : default; public string Qux => which == WHICH.Qux ? ctx.ReadText(1, null) : default;
public IReadOnlyList<int> Corge => which == WHICH.Corge ? ctx.ReadList(1).CastInt() : default; public IReadOnlyList<int> Corge => which == WHICH.Corge ? ctx.ReadList(1).CastInt() : default;
public bool HasCorge => ctx.IsStructFieldNonNull(1);
public float Grault => which == WHICH.Grault ? ctx.ReadDataFloat(64UL, 0F) : default; public float Grault => which == WHICH.Grault ? ctx.ReadDataFloat(64UL, 0F) : default;
} }
@ -6857,6 +6910,7 @@ namespace Capnproto_test.Capnp.Test
public WHICH which => (WHICH)ctx.ReadDataUShort(96U, (ushort)0); public WHICH which => (WHICH)ctx.ReadDataUShort(96U, (ushort)0);
public string Qux => which == WHICH.Qux ? ctx.ReadText(2, null) : default; public string Qux => which == WHICH.Qux ? ctx.ReadText(2, null) : default;
public IReadOnlyList<int> Corge => which == WHICH.Corge ? ctx.ReadList(2).CastInt() : default; public IReadOnlyList<int> Corge => which == WHICH.Corge ? ctx.ReadList(2).CastInt() : default;
public bool HasCorge => ctx.IsStructFieldNonNull(2);
public float Grault => which == WHICH.Grault ? ctx.ReadDataFloat(128UL, 0F) : default; public float Grault => which == WHICH.Grault ? ctx.ReadDataFloat(128UL, 0F) : default;
} }
@ -6954,6 +7008,7 @@ namespace Capnproto_test.Capnp.Test
public long Old1 => ctx.ReadDataLong(0UL, 0L); public long Old1 => ctx.ReadDataLong(0UL, 0L);
public string Old2 => ctx.ReadText(0, null); public string Old2 => ctx.ReadText(0, null);
public Capnproto_test.Capnp.Test.TestOldVersion.READER Old3 => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestOldVersion.READER.create); public Capnproto_test.Capnp.Test.TestOldVersion.READER Old3 => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestOldVersion.READER.create);
public bool HasOld3 => ctx.IsStructFieldNonNull(1);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -7062,6 +7117,7 @@ namespace Capnproto_test.Capnp.Test
public long Old1 => ctx.ReadDataLong(0UL, 0L); public long Old1 => ctx.ReadDataLong(0UL, 0L);
public string Old2 => ctx.ReadText(0, null); public string Old2 => ctx.ReadText(0, null);
public Capnproto_test.Capnp.Test.TestNewVersion.READER Old3 => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestNewVersion.READER.create); public Capnproto_test.Capnp.Test.TestNewVersion.READER Old3 => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestNewVersion.READER.create);
public bool HasOld3 => ctx.IsStructFieldNonNull(1);
public long New1 => ctx.ReadDataLong(64UL, 987L); public long New1 => ctx.ReadDataLong(64UL, 987L);
public string New2 => ctx.ReadText(2, "baz"); public string New2 => ctx.ReadText(2, "baz");
} }
@ -7633,7 +7689,9 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public WHICH which => (WHICH)ctx.ReadDataUShort(0U, (ushort)0); public WHICH which => (WHICH)ctx.ReadDataUShort(0U, (ushort)0);
public Capnproto_test.Capnp.Test.TestStructUnion.SomeStruct.READER Struct => which == WHICH.Struct ? ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestStructUnion.SomeStruct.READER.create) : default; public Capnproto_test.Capnp.Test.TestStructUnion.SomeStruct.READER Struct => which == WHICH.Struct ? ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestStructUnion.SomeStruct.READER.create) : default;
public bool HasStruct => ctx.IsStructFieldNonNull(0);
public Capnproto_test.Capnp.Test.TestAnyPointer.READER Object => which == WHICH.Object ? ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestAnyPointer.READER.create) : default; public Capnproto_test.Capnp.Test.TestAnyPointer.READER Object => which == WHICH.Object ? ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestAnyPointer.READER.create) : default;
public bool HasObject => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -7790,6 +7848,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public string SomeText => ctx.ReadText(0, null); public string SomeText => ctx.ReadText(0, null);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestPrintInlineStructs.InlineStruct.READER> StructList => ctx.ReadList(1).Cast(Capnproto_test.Capnp.Test.TestPrintInlineStructs.InlineStruct.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestPrintInlineStructs.InlineStruct.READER> StructList => ctx.ReadList(1).Cast(Capnproto_test.Capnp.Test.TestPrintInlineStructs.InlineStruct.READER.create);
public bool HasStructList => ctx.IsStructFieldNonNull(1);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -8084,8 +8143,10 @@ namespace Capnproto_test.Capnp.Test
public WHICH which => (WHICH)ctx.ReadDataUShort(0U, (ushort)0); public WHICH which => (WHICH)ctx.ReadDataUShort(0U, (ushort)0);
public DeserializerState Foo => ctx.StructReadPointer(0); public DeserializerState Foo => ctx.StructReadPointer(0);
public Capnproto_test.Capnp.Test.TestGenerics<TBar, TFoo>.READER Rev => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<TBar, TFoo>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TBar, TFoo>.READER Rev => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<TBar, TFoo>.READER.create);
public bool HasRev => ctx.IsStructFieldNonNull(1);
public ug.READER Ug => which == WHICH.Ug ? new ug.READER(ctx) : default; public ug.READER Ug => which == WHICH.Ug ? new ug.READER(ctx) : default;
public IReadOnlyList<Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER> List => ctx.ReadList(2).Cast(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER> List => ctx.ReadList(2).Cast(Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create);
public bool HasList => ctx.IsStructFieldNonNull(2);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -8328,7 +8389,9 @@ namespace Capnproto_test.Capnp.Test
public DeserializerState Bar => ctx.StructReadPointer(0); public DeserializerState Bar => ctx.StructReadPointer(0);
public DeserializerState Baz => ctx.StructReadPointer(1); public DeserializerState Baz => ctx.StructReadPointer(1);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER InnerBound => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER InnerBound => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create);
public bool HasInnerBound => ctx.IsStructFieldNonNull(2);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER InnerUnbound => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER InnerUnbound => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create);
public bool HasInnerUnbound => ctx.IsStructFieldNonNull(3);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -8713,6 +8776,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public DeserializerState Qux => ctx.StructReadPointer(0); public DeserializerState Qux => ctx.StructReadPointer(0);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER Gen => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER Gen => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER.create);
public bool HasGen => ctx.IsStructFieldNonNull(1);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -8821,9 +8885,13 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public DeserializerState Foo => ctx.StructReadPointer(0); public DeserializerState Foo => ctx.StructReadPointer(0);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER Inner => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER Inner => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner.READER.create);
public bool HasInner => ctx.IsStructFieldNonNull(1);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<object>.READER Inner2 => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<object>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<object>.READER Inner2 => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<object>.READER.create);
public bool HasInner2 => ctx.IsStructFieldNonNull(2);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER Inner2Bind => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER Inner2Bind => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER.create);
public bool HasInner2Bind => ctx.IsStructFieldNonNull(3);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER Inner2Text => ctx.ReadStruct(4, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER Inner2Text => ctx.ReadStruct(4, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.Inner2<string>.READER.create);
public bool HasInner2Text => ctx.IsStructFieldNonNull(4);
public DeserializerState RevFoo => ctx.StructReadPointer(5); public DeserializerState RevFoo => ctx.StructReadPointer(5);
} }
@ -8916,6 +8984,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.READER Value => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.READER Value => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestGenerics<TFoo, TBar>.READER.create);
public bool HasValue => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -8976,6 +9045,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER Value => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER.create); public Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER Value => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER.create);
public bool HasValue => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -9700,24 +9770,42 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER Basic => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER Basic => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER.create);
public bool HasBasic => ctx.IsStructFieldNonNull(0);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER Inner => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER Inner => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER.create);
public bool HasInner => ctx.IsStructFieldNonNull(1);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER Inner2 => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER Inner2 => ctx.ReadStruct(2, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER.create);
public bool HasInner2 => ctx.IsStructFieldNonNull(2);
public Capnproto_test.Capnp.Test.TestGenerics<object, object>.READER Unspecified => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestGenerics<object, object>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<object, object>.READER Unspecified => ctx.ReadStruct(3, Capnproto_test.Capnp.Test.TestGenerics<object, object>.READER.create);
public bool HasUnspecified => ctx.IsStructFieldNonNull(3);
public Capnproto_test.Capnp.Test.TestGenerics<object, object>.Inner2<string>.READER UnspecifiedInner => ctx.ReadStruct(4, Capnproto_test.Capnp.Test.TestGenerics<object, object>.Inner2<string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<object, object>.Inner2<string>.READER UnspecifiedInner => ctx.ReadStruct(4, Capnproto_test.Capnp.Test.TestGenerics<object, object>.Inner2<string>.READER.create);
public bool HasUnspecifiedInner => ctx.IsStructFieldNonNull(4);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.READER Default => ctx.ReadStruct(5, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.READER Default => ctx.ReadStruct(5, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.READER.create);
public bool HasDefault => ctx.IsStructFieldNonNull(5);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.Inner.READER DefaultInner => ctx.ReadStruct(6, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.Inner.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.Inner.READER DefaultInner => ctx.ReadStruct(6, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, string>.Inner.READER.create);
public bool HasDefaultInner => ctx.IsStructFieldNonNull(6);
public Capnproto_test.Capnp.Test.TestUseGenerics.READER DefaultUser => ctx.ReadStruct(7, Capnproto_test.Capnp.Test.TestUseGenerics.READER.create); public Capnproto_test.Capnp.Test.TestUseGenerics.READER DefaultUser => ctx.ReadStruct(7, Capnproto_test.Capnp.Test.TestUseGenerics.READER.create);
public bool HasDefaultUser => ctx.IsStructFieldNonNull(7);
public Capnproto_test.Capnp.Test.TestGenericsWrapper<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER Wrapper => ctx.ReadStruct(8, Capnproto_test.Capnp.Test.TestGenericsWrapper<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER.create); public Capnproto_test.Capnp.Test.TestGenericsWrapper<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER Wrapper => ctx.ReadStruct(8, Capnproto_test.Capnp.Test.TestGenericsWrapper<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.READER.create);
public bool HasWrapper => ctx.IsStructFieldNonNull(8);
public Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER DefaultWrapper => ctx.ReadStruct(9, Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER.create); public Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER DefaultWrapper => ctx.ReadStruct(9, Capnproto_test.Capnp.Test.TestGenericsWrapper<string, Capnproto_test.Capnp.Test.TestAllTypes>.READER.create);
public bool HasDefaultWrapper => ctx.IsStructFieldNonNull(9);
public Capnproto_test.Capnp.Test.TestGenericsWrapper2.READER DefaultWrapper2 => ctx.ReadStruct(10, Capnproto_test.Capnp.Test.TestGenericsWrapper2.READER.create); public Capnproto_test.Capnp.Test.TestGenericsWrapper2.READER DefaultWrapper2 => ctx.ReadStruct(10, Capnproto_test.Capnp.Test.TestGenericsWrapper2.READER.create);
public bool HasDefaultWrapper2 => ctx.IsStructFieldNonNull(10);
public Capnproto_test.Capnp.Test.TestAllTypes.READER AliasFoo => ctx.ReadStruct(11, Capnproto_test.Capnp.Test.TestAllTypes.READER.create); public Capnproto_test.Capnp.Test.TestAllTypes.READER AliasFoo => ctx.ReadStruct(11, Capnproto_test.Capnp.Test.TestAllTypes.READER.create);
public bool HasAliasFoo => ctx.IsStructFieldNonNull(11);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER AliasInner => ctx.ReadStruct(12, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER AliasInner => ctx.ReadStruct(12, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner.READER.create);
public bool HasAliasInner => ctx.IsStructFieldNonNull(12);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<object>.READER AliasInner2 => ctx.ReadStruct(13, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<object>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<object>.READER AliasInner2 => ctx.ReadStruct(13, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<object>.READER.create);
public bool HasAliasInner2 => ctx.IsStructFieldNonNull(13);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<IReadOnlyList<uint>>.READER AliasInner2Bind => ctx.ReadStruct(14, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<IReadOnlyList<uint>>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<IReadOnlyList<uint>>.READER AliasInner2Bind => ctx.ReadStruct(14, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<IReadOnlyList<uint>>.READER.create);
public bool HasAliasInner2Bind => ctx.IsStructFieldNonNull(14);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER AliasInner2Text => ctx.ReadStruct(15, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER AliasInner2Text => ctx.ReadStruct(15, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, Capnproto_test.Capnp.Test.TestAnyPointer>.Inner2<string>.READER.create);
public bool HasAliasInner2Text => ctx.IsStructFieldNonNull(15);
public string AliasRev => ctx.ReadText(16, "text"); public string AliasRev => ctx.ReadText(16, "text");
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.UseAliases.READER UseAliases => ctx.ReadStruct(17, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.UseAliases.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.UseAliases.READER UseAliases => ctx.ReadStruct(17, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.UseAliases.READER.create);
public bool HasUseAliases => ctx.IsStructFieldNonNull(17);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.ITestInterface, string>.READER Cap => ctx.ReadStruct(18, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.ITestInterface, string>.READER.create); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.ITestInterface, string>.READER Cap => ctx.ReadStruct(18, Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.ITestInterface, string>.READER.create);
public bool HasCap => ctx.IsStructFieldNonNull(18);
public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.IInterface<IReadOnlyList<byte>> GenericCap => ctx.ReadCap<Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.IInterface<IReadOnlyList<byte>>>(19); public Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.IInterface<IReadOnlyList<byte>> GenericCap => ctx.ReadCap<Capnproto_test.Capnp.Test.TestGenerics<Capnproto_test.Capnp.Test.TestAllTypes, IReadOnlyList<uint>>.IInterface<IReadOnlyList<byte>>>(19);
} }
@ -10414,6 +10502,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestAllTypes.READER S => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestAllTypes.READER.create); public Capnproto_test.Capnp.Test.TestAllTypes.READER S => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestAllTypes.READER.create);
public bool HasS => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -11254,6 +11343,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public string S => ctx.ReadText(0, null); public string S => ctx.ReadText(0, null);
public Capnproto_test.Capnp.Test.TestPipeline.Box.READER OutBox => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestPipeline.Box.READER.create); public Capnproto_test.Capnp.Test.TestPipeline.Box.READER OutBox => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestPipeline.Box.READER.create);
public bool HasOutBox => ctx.IsStructFieldNonNull(1);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -11338,6 +11428,7 @@ namespace Capnproto_test.Capnp.Test
public Capnproto_test.Capnp.Test.ITestInterface Cap => ctx.ReadCap<Capnproto_test.Capnp.Test.ITestInterface>(0); public Capnproto_test.Capnp.Test.ITestInterface Cap => ctx.ReadCap<Capnproto_test.Capnp.Test.ITestInterface>(0);
public DeserializerState Obj => ctx.StructReadPointer(1); public DeserializerState Obj => ctx.StructReadPointer(1);
public IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> List => ctx.ReadCapList<Capnproto_test.Capnp.Test.ITestInterface>(2); public IReadOnlyList<Capnproto_test.Capnp.Test.ITestInterface> List => ctx.ReadCapList<Capnproto_test.Capnp.Test.ITestInterface>(2);
public bool HasList => ctx.IsStructFieldNonNull(2);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -11539,6 +11630,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public string S => ctx.ReadText(0, null); public string S => ctx.ReadText(0, null);
public Capnproto_test.Capnp.Test.TestPipeline.AnyBox.READER OutBox => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestPipeline.AnyBox.READER.create); public Capnproto_test.Capnp.Test.TestPipeline.AnyBox.READER OutBox => ctx.ReadStruct(1, Capnproto_test.Capnp.Test.TestPipeline.AnyBox.READER.create);
public bool HasOutBox => ctx.IsStructFieldNonNull(1);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -14978,6 +15070,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestMembrane.IThing Cap => ctx.ReadCap<Capnproto_test.Capnp.Test.TestMembrane.IThing>(0); public Capnproto_test.Capnp.Test.TestMembrane.IThing Cap => ctx.ReadCap<Capnproto_test.Capnp.Test.TestMembrane.IThing>(0);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestMembrane.IThing> List => ctx.ReadCapList<Capnproto_test.Capnp.Test.TestMembrane.IThing>(1); public IReadOnlyList<Capnproto_test.Capnp.Test.TestMembrane.IThing> List => ctx.ReadCapList<Capnproto_test.Capnp.Test.TestMembrane.IThing>(1);
public bool HasList => ctx.IsStructFieldNonNull(1);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -15044,6 +15137,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public IReadOnlyList<Capnproto_test.Capnp.Test.TestTransferCap.Element.READER> List => ctx.ReadList(0).Cast(Capnproto_test.Capnp.Test.TestTransferCap.Element.READER.create); public IReadOnlyList<Capnproto_test.Capnp.Test.TestTransferCap.Element.READER> List => ctx.ReadList(0).Cast(Capnproto_test.Capnp.Test.TestTransferCap.Element.READER.create);
public bool HasList => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -15828,6 +15922,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator DeserializerState(READER reader) => reader.ctx; public static implicit operator DeserializerState(READER reader) => reader.ctx;
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public Capnproto_test.Capnp.Test.TestSturdyRefHostId.READER HostId => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestSturdyRefHostId.READER.create); public Capnproto_test.Capnp.Test.TestSturdyRefHostId.READER HostId => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestSturdyRefHostId.READER.create);
public bool HasHostId => ctx.IsStructFieldNonNull(0);
public DeserializerState ObjectId => ctx.StructReadPointer(1); public DeserializerState ObjectId => ctx.StructReadPointer(1);
} }
@ -16433,6 +16528,7 @@ namespace Capnproto_test.Capnp.Test
public WHICH which => (WHICH)ctx.ReadDataUShort(48U, (ushort)0); public WHICH which => (WHICH)ctx.ReadDataUShort(48U, (ushort)0);
public badlyNamedGroup.READER BadlyNamedGroup => which == WHICH.BadlyNamedGroup ? new badlyNamedGroup.READER(ctx) : default; public badlyNamedGroup.READER BadlyNamedGroup => which == WHICH.BadlyNamedGroup ? new badlyNamedGroup.READER(ctx) : default;
public Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER Baz => which == WHICH.Baz ? ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER.create) : default; public Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER Baz => which == WHICH.Baz ? ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER.create) : default;
public bool HasBaz => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState
@ -16564,6 +16660,7 @@ namespace Capnproto_test.Capnp.Test
public static implicit operator READER(DeserializerState ctx) => new READER(ctx); public static implicit operator READER(DeserializerState ctx) => new READER(ctx);
public bool BadNestedFieldName => ctx.ReadDataBool(0UL, false); public bool BadNestedFieldName => ctx.ReadDataBool(0UL, false);
public Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER AnotherBadNestedFieldName => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER.create); public Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER AnotherBadNestedFieldName => ctx.ReadStruct(0, Capnproto_test.Capnp.Test.TestNameAnnotation.NestedStruct.READER.create);
public bool HasAnotherBadNestedFieldName => ctx.IsStructFieldNonNull(0);
} }
public class WRITER : SerializerState public class WRITER : SerializerState

View File

@ -31,7 +31,7 @@ namespace CapnpC.CSharp.Generator.Tests.Util
"Capnp.Net.Runtime", "Capnp.Net.Runtime",
"bin", "bin",
"Debug", "Debug",
"netcoreapp3.0", "netcoreapp3.1",
"Capnp.Net.Runtime.dll")); "Capnp.Net.Runtime.dll"));
var parseOptions = CSharpParseOptions.Default; var parseOptions = CSharpParseOptions.Default;

View File

@ -264,6 +264,21 @@ namespace CapnpC.CSharp.Generator.CodeGen
creator, null, field.DiscValue.HasValue); creator, null, field.DiscValue.HasValue);
} }
PropertyDeclarationSyntax MakeHasStructProperty(Field field)
{
var propertyType = _names.Type<bool>(Nullability.NonNullable);
var propertyName = "Has" + _names.GetCodeIdentifier(field).ToString();
return MakeReadProperty(
propertyType,
propertyName,
nameof(Capnp.DeserializerState.IsStructFieldNonNull),
(int)field.Offset,
null,
null,
false);
}
PropertyDeclarationSyntax MakeReadGroupProperty(Field field) PropertyDeclarationSyntax MakeReadGroupProperty(Field field)
{ {
var type = QualifiedName( var type = QualifiedName(
@ -630,6 +645,18 @@ namespace CapnpC.CSharp.Generator.CodeGen
} }
} }
PropertyDeclarationSyntax MakeHasValueFieldProperty(Field field)
{
switch (field.Type.Tag)
{
case TypeTag.Struct:
case TypeTag.List:
return MakeHasStructProperty(field);
default:
return null;
}
}
public StructDeclarationSyntax MakeReaderStruct(TypeDefinition def) public StructDeclarationSyntax MakeReaderStruct(TypeDefinition def)
{ {
var readerDecl = StructDeclaration(_names.ReaderStruct.ToString()).AddModifiers(Public); var readerDecl = StructDeclaration(_names.ReaderStruct.ToString()).AddModifiers(Public);
@ -653,6 +680,12 @@ namespace CapnpC.CSharp.Generator.CodeGen
{ {
readerDecl = readerDecl.AddMembers(propDecl); readerDecl = readerDecl.AddMembers(propDecl);
} }
var hasValueDecl = MakeHasValueFieldProperty(field);
if (hasValueDecl != null)
{
readerDecl = readerDecl.AddMembers(hasValueDecl);
}
} }
return readerDecl; return readerDecl;

View File

@ -97,6 +97,12 @@
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>ws2_32.lib;capnp.lib;capnp-rpc.lib;kj.lib;kj-async.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>ws2_32.lib;capnp.lib;capnp-rpc.lib;kj.lib;kj-async.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link> </Link>
<PreBuildEvent>
<Command>capnp compile -oc++ test.capnp</Command>
</PreBuildEvent>
<PreBuildEvent>
<Message>re-compile test.capnp</Message>
</PreBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile> <ClCompile>
@ -112,6 +118,12 @@
<SubSystem>Console</SubSystem> <SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
</Link> </Link>
<PreBuildEvent>
<Command>capnp compile -oc++ test.capnp</Command>
</PreBuildEvent>
<PreBuildEvent>
<Message>re-compile test.capnp</Message>
</PreBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile> <ClCompile>
@ -132,6 +144,12 @@
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>ws2_32.lib;capnp.lib;capnp-rpc.lib;kj.lib;kj-async.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>ws2_32.lib;capnp.lib;capnp-rpc.lib;kj.lib;kj-async.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link> </Link>
<PreBuildEvent>
<Command>capnp compile -oc++ test.capnp</Command>
</PreBuildEvent>
<PreBuildEvent>
<Message>re-compile test.capnp</Message>
</PreBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile> <ClCompile>
@ -151,6 +169,12 @@
<OptimizeReferences>true</OptimizeReferences> <OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
</Link> </Link>
<PreBuildEvent>
<Command>capnp compile -oc++ test.capnp</Command>
</PreBuildEvent>
<PreBuildEvent>
<Message>re-compile test.capnp</Message>
</PreBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="CapnpCompatTest.cpp" /> <ClCompile Include="CapnpCompatTest.cpp" />

View File

@ -21,14 +21,12 @@
<ClCompile Include="CapnpCompatTest.cpp"> <ClCompile Include="CapnpCompatTest.cpp">
<Filter>Quelldateien</Filter> <Filter>Quelldateien</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="test.capnp.c++" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="test.capnp"> <None Include="test.capnp">
<Filter>Schema</Filter> <Filter>Schema</Filter>
</None> </None>
<None Include="test.capnp.c++">
<Filter>Schema</Filter>
</None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="test.capnp.h"> <ClInclude Include="test.capnp.h">

View File

@ -11914,7 +11914,7 @@ static const ::capnp::_::AlignedData<553> b_8e59556fb309253f = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
12, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 98, 132, 0, 0, 1, 0, 0, 0, 106, 132, 0, 0,
40, 118, 111, 105, 100, 70, 105, 101, 40, 118, 111, 105, 100, 70, 105, 101,
108, 100, 32, 61, 32, 118, 111, 105, 108, 100, 32, 61, 32, 118, 111, 105,
100, 44, 32, 98, 111, 111, 108, 70, 100, 44, 32, 98, 111, 111, 108, 70,
@ -12444,7 +12444,7 @@ static const ::capnp::_::AlignedData<553> b_8e59556fb309253f = {
32, 101, 110, 117, 109, 76, 105, 115, 32, 101, 110, 117, 109, 76, 105, 115,
116, 32, 61, 32, 91, 102, 111, 111, 116, 32, 61, 32, 91, 102, 111, 111,
44, 32, 103, 97, 114, 112, 108, 121, 44, 32, 103, 97, 114, 112, 108, 121,
93, 41, 10, 0, 0, 0, 0, 0, } 93, 41, 13, 10, 0, 0, 0, 0, }
}; };
::capnp::word const* const bp_8e59556fb309253f = b_8e59556fb309253f.words; ::capnp::word const* const bp_8e59556fb309253f = b_8e59556fb309253f.words;
#if !CAPNP_LITE #if !CAPNP_LITE
@ -18930,7 +18930,7 @@ constexpr ::capnp::_::RawSchema const* TestGenericsWrapper2::_capnpPrivate::sche
"test.capnp:TestImplicitMethodParams", "call", "test.capnp:TestImplicitMethodParams", "call",
0x8b9717a3f8d85a9aull, 0); 0x8b9717a3f8d85a9aull, 0);
} }
::kj::Promise<void> TestImplicitMethodParams::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestImplicitMethodParams::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -18940,13 +18940,16 @@ constexpr ::capnp::_::RawSchema const* TestGenericsWrapper2::_capnpPrivate::sche
return internalUnimplemented("test.capnp:TestImplicitMethodParams", interfaceId); return internalUnimplemented("test.capnp:TestImplicitMethodParams", interfaceId);
} }
} }
::kj::Promise<void> TestImplicitMethodParams::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestImplicitMethodParams::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return call(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestImplicitMethodParams::CallParams<>, ::capnproto_test::capnp::test::TestGenerics< ::capnp::AnyPointer, ::capnp::AnyPointer>>(context)); call(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestImplicitMethodParams::CallParams<>, ::capnproto_test::capnp::test::TestGenerics< ::capnp::AnyPointer, ::capnp::AnyPointer>>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19044,7 +19047,7 @@ const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestPrintInlineStr
const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> DERIVED_CONSTANT(::capnp::schemas::b_a4764c3483341eeb.words + 23); const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> DERIVED_CONSTANT(::capnp::schemas::b_a4764c3483341eeb.words + 23);
const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestGenerics< ::capnproto_test::capnp::test::TestAllTypes, ::capnp::Text>> GENERIC_CONSTANT(::capnp::schemas::b_b70341f0dafa28ef.words + 41); const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestGenerics< ::capnproto_test::capnp::test::TestAllTypes, ::capnp::Text>> GENERIC_CONSTANT(::capnp::schemas::b_b70341f0dafa28ef.words + 41);
const ::capnp::_::ConstData<831> EMBEDDED_DATA(::capnp::schemas::b_d7c0fea759d6a0cf.words + 23); const ::capnp::_::ConstData<831> EMBEDDED_DATA(::capnp::schemas::b_d7c0fea759d6a0cf.words + 23);
const ::capnp::_::ConstText<4235> EMBEDDED_TEXT(::capnp::schemas::b_8e59556fb309253f.words + 23); const ::capnp::_::ConstText<4236> EMBEDDED_TEXT(::capnp::schemas::b_8e59556fb309253f.words + 23);
const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> EMBEDDED_STRUCT(::capnp::schemas::b_dec09c6791841ebb.words + 23); const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> EMBEDDED_STRUCT(::capnp::schemas::b_dec09c6791841ebb.words + 23);
const ::capnp::_::ConstText<10> NON_ASCII_TEXT(::capnp::schemas::b_fb7ed666617fb649.words + 23); const ::capnp::_::ConstText<10> NON_ASCII_TEXT(::capnp::schemas::b_fb7ed666617fb649.words + 23);
// TestAnyPointerConstants // TestAnyPointerConstants
@ -19087,7 +19090,7 @@ TestInterface::Client::bazRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint) {
"test.capnp:TestInterface", "baz", "test.capnp:TestInterface", "baz",
0x88eb12a0e0af92b2ull, 2); 0x88eb12a0e0af92b2ull, 2);
} }
::kj::Promise<void> TestInterface::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestInterface::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19097,19 +19100,28 @@ TestInterface::Client::bazRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint) {
return internalUnimplemented("test.capnp:TestInterface", interfaceId); return internalUnimplemented("test.capnp:TestInterface", interfaceId);
} }
} }
::kj::Promise<void> TestInterface::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestInterface::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return foo(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestInterface::FooParams, ::capnproto_test::capnp::test::TestInterface::FooResults>(context)); foo(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestInterface::FooParams, ::capnproto_test::capnp::test::TestInterface::FooResults>(context)),
false
};
case 1: case 1:
return bar(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestInterface::BarParams, ::capnproto_test::capnp::test::TestInterface::BarResults>(context)); bar(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestInterface::BarParams, ::capnproto_test::capnp::test::TestInterface::BarResults>(context)),
false
};
case 2: case 2:
return baz(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestInterface::BazParams, ::capnproto_test::capnp::test::TestInterface::BazResults>(context)); baz(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestInterface::BazParams, ::capnproto_test::capnp::test::TestInterface::BazResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19204,7 +19216,7 @@ TestExtends::Client::graultRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint)
"test.capnp:TestExtends", "grault", "test.capnp:TestExtends", "grault",
0xe4e9bac98670b748ull, 2); 0xe4e9bac98670b748ull, 2);
} }
::kj::Promise<void> TestExtends::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestExtends::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19216,19 +19228,28 @@ TestExtends::Client::graultRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint)
return internalUnimplemented("test.capnp:TestExtends", interfaceId); return internalUnimplemented("test.capnp:TestExtends", interfaceId);
} }
} }
::kj::Promise<void> TestExtends::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestExtends::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return qux(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestExtends::QuxParams, ::capnproto_test::capnp::test::TestExtends::QuxResults>(context)); qux(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestExtends::QuxParams, ::capnproto_test::capnp::test::TestExtends::QuxResults>(context)),
false
};
case 1: case 1:
return corge(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestAllTypes, ::capnproto_test::capnp::test::TestExtends::CorgeResults>(context)); corge(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestAllTypes, ::capnproto_test::capnp::test::TestExtends::CorgeResults>(context)),
false
};
case 2: case 2:
return grault(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestExtends::GraultParams, ::capnproto_test::capnp::test::TestAllTypes>(context)); grault(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestExtends::GraultParams, ::capnproto_test::capnp::test::TestAllTypes>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19277,7 +19298,7 @@ constexpr ::capnp::_::RawSchema const* TestExtends::GraultParams::_capnpPrivate:
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
#if !CAPNP_LITE #if !CAPNP_LITE
::kj::Promise<void> TestExtends2::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestExtends2::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19291,7 +19312,7 @@ constexpr ::capnp::_::RawSchema const* TestExtends::GraultParams::_capnpPrivate:
return internalUnimplemented("test.capnp:TestExtends2", interfaceId); return internalUnimplemented("test.capnp:TestExtends2", interfaceId);
} }
} }
::kj::Promise<void> TestExtends2::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestExtends2::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
@ -19341,7 +19362,7 @@ TestPipeline::Client::getAnyCapRequest(::kj::Maybe< ::capnp::MessageSize> sizeHi
"test.capnp:TestPipeline", "getAnyCap", "test.capnp:TestPipeline", "getAnyCap",
0xa5a404caa61d4cd0ull, 2); 0xa5a404caa61d4cd0ull, 2);
} }
::kj::Promise<void> TestPipeline::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestPipeline::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19351,19 +19372,28 @@ TestPipeline::Client::getAnyCapRequest(::kj::Maybe< ::capnp::MessageSize> sizeHi
return internalUnimplemented("test.capnp:TestPipeline", interfaceId); return internalUnimplemented("test.capnp:TestPipeline", interfaceId);
} }
} }
::kj::Promise<void> TestPipeline::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestPipeline::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return getCap(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestPipeline::GetCapParams, ::capnproto_test::capnp::test::TestPipeline::GetCapResults>(context)); getCap(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestPipeline::GetCapParams, ::capnproto_test::capnp::test::TestPipeline::GetCapResults>(context)),
false
};
case 1: case 1:
return testPointers(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestPipeline::TestPointersParams, ::capnproto_test::capnp::test::TestPipeline::TestPointersResults>(context)); testPointers(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestPipeline::TestPointersParams, ::capnproto_test::capnp::test::TestPipeline::TestPointersResults>(context)),
false
};
case 2: case 2:
return getAnyCap(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestPipeline::GetAnyCapParams, ::capnproto_test::capnp::test::TestPipeline::GetAnyCapResults>(context)); getAnyCap(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestPipeline::GetAnyCapParams, ::capnproto_test::capnp::test::TestPipeline::GetAnyCapResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19454,7 +19484,7 @@ TestCallOrder::Client::getCallSequenceRequest(::kj::Maybe< ::capnp::MessageSize>
"test.capnp:TestCallOrder", "getCallSequence", "test.capnp:TestCallOrder", "getCallSequence",
0xa0e77035bdff0051ull, 0); 0xa0e77035bdff0051ull, 0);
} }
::kj::Promise<void> TestCallOrder::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestCallOrder::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19464,13 +19494,16 @@ TestCallOrder::Client::getCallSequenceRequest(::kj::Maybe< ::capnp::MessageSize>
return internalUnimplemented("test.capnp:TestCallOrder", interfaceId); return internalUnimplemented("test.capnp:TestCallOrder", interfaceId);
} }
} }
::kj::Promise<void> TestCallOrder::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestCallOrder::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return getCallSequence(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestCallOrder::GetCallSequenceParams, ::capnproto_test::capnp::test::TestCallOrder::GetCallSequenceResults>(context)); getCallSequence(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestCallOrder::GetCallSequenceParams, ::capnproto_test::capnp::test::TestCallOrder::GetCallSequenceResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19513,7 +19546,7 @@ TestTailCallee::Client::fooRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint)
"test.capnp:TestTailCallee", "foo", "test.capnp:TestTailCallee", "foo",
0xddd699207eb8e23bull, 0); 0xddd699207eb8e23bull, 0);
} }
::kj::Promise<void> TestTailCallee::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestTailCallee::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19523,13 +19556,16 @@ TestTailCallee::Client::fooRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint)
return internalUnimplemented("test.capnp:TestTailCallee", interfaceId); return internalUnimplemented("test.capnp:TestTailCallee", interfaceId);
} }
} }
::kj::Promise<void> TestTailCallee::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestTailCallee::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return foo(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestTailCallee::FooParams, ::capnproto_test::capnp::test::TestTailCallee::TailResult>(context)); foo(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestTailCallee::FooParams, ::capnproto_test::capnp::test::TestTailCallee::TailResult>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19572,7 +19608,7 @@ TestTailCaller::Client::fooRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint)
"test.capnp:TestTailCaller", "foo", "test.capnp:TestTailCaller", "foo",
0x870bf40110ce3035ull, 0); 0x870bf40110ce3035ull, 0);
} }
::kj::Promise<void> TestTailCaller::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestTailCaller::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19582,13 +19618,16 @@ TestTailCaller::Client::fooRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint)
return internalUnimplemented("test.capnp:TestTailCaller", interfaceId); return internalUnimplemented("test.capnp:TestTailCaller", interfaceId);
} }
} }
::kj::Promise<void> TestTailCaller::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestTailCaller::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return foo(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestTailCaller::FooParams, ::capnproto_test::capnp::test::TestTailCallee::TailResult>(context)); foo(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestTailCaller::FooParams, ::capnproto_test::capnp::test::TestTailCallee::TailResult>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -19613,7 +19652,7 @@ constexpr ::capnp::_::RawSchema const* TestTailCaller::FooParams::_capnpPrivate:
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
#if !CAPNP_LITE #if !CAPNP_LITE
::kj::Promise<void> TestHandle::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestHandle::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19623,7 +19662,7 @@ constexpr ::capnp::_::RawSchema const* TestTailCaller::FooParams::_capnpPrivate:
return internalUnimplemented("test.capnp:TestHandle", interfaceId); return internalUnimplemented("test.capnp:TestHandle", interfaceId);
} }
} }
::kj::Promise<void> TestHandle::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestHandle::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
@ -19773,7 +19812,7 @@ TestMoreStuff::Client::methodWithNullDefaultRequest(::kj::Maybe< ::capnp::Messag
"test.capnp:TestMoreStuff", "methodWithNullDefault", "test.capnp:TestMoreStuff", "methodWithNullDefault",
0xddc70bf9784133cfull, 12); 0xddc70bf9784133cfull, 12);
} }
::kj::Promise<void> TestMoreStuff::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestMoreStuff::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -19785,49 +19824,88 @@ TestMoreStuff::Client::methodWithNullDefaultRequest(::kj::Maybe< ::capnp::Messag
return internalUnimplemented("test.capnp:TestMoreStuff", interfaceId); return internalUnimplemented("test.capnp:TestMoreStuff", interfaceId);
} }
} }
::kj::Promise<void> TestMoreStuff::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestMoreStuff::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return callFoo(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::CallFooParams, ::capnproto_test::capnp::test::TestMoreStuff::CallFooResults>(context)); callFoo(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::CallFooParams, ::capnproto_test::capnp::test::TestMoreStuff::CallFooResults>(context)),
false
};
case 1: case 1:
return callFooWhenResolved(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::CallFooWhenResolvedParams, ::capnproto_test::capnp::test::TestMoreStuff::CallFooWhenResolvedResults>(context)); callFooWhenResolved(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::CallFooWhenResolvedParams, ::capnproto_test::capnp::test::TestMoreStuff::CallFooWhenResolvedResults>(context)),
false
};
case 2: case 2:
return neverReturn(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::NeverReturnParams, ::capnproto_test::capnp::test::TestMoreStuff::NeverReturnResults>(context)); neverReturn(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::NeverReturnParams, ::capnproto_test::capnp::test::TestMoreStuff::NeverReturnResults>(context)),
false
};
case 3: case 3:
return hold(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::HoldParams, ::capnproto_test::capnp::test::TestMoreStuff::HoldResults>(context)); hold(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::HoldParams, ::capnproto_test::capnp::test::TestMoreStuff::HoldResults>(context)),
false
};
case 4: case 4:
return callHeld(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::CallHeldParams, ::capnproto_test::capnp::test::TestMoreStuff::CallHeldResults>(context)); callHeld(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::CallHeldParams, ::capnproto_test::capnp::test::TestMoreStuff::CallHeldResults>(context)),
false
};
case 5: case 5:
return getHeld(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::GetHeldParams, ::capnproto_test::capnp::test::TestMoreStuff::GetHeldResults>(context)); getHeld(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::GetHeldParams, ::capnproto_test::capnp::test::TestMoreStuff::GetHeldResults>(context)),
false
};
case 6: case 6:
return echo(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::EchoParams, ::capnproto_test::capnp::test::TestMoreStuff::EchoResults>(context)); echo(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::EchoParams, ::capnproto_test::capnp::test::TestMoreStuff::EchoResults>(context)),
false
};
case 7: case 7:
return expectCancel(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::ExpectCancelParams, ::capnproto_test::capnp::test::TestMoreStuff::ExpectCancelResults>(context)); expectCancel(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::ExpectCancelParams, ::capnproto_test::capnp::test::TestMoreStuff::ExpectCancelResults>(context)),
false
};
case 8: case 8:
return methodWithDefaults(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::MethodWithDefaultsParams, ::capnproto_test::capnp::test::TestMoreStuff::MethodWithDefaultsResults>(context)); methodWithDefaults(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::MethodWithDefaultsParams, ::capnproto_test::capnp::test::TestMoreStuff::MethodWithDefaultsResults>(context)),
false
};
case 9: case 9:
return getHandle(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::GetHandleParams, ::capnproto_test::capnp::test::TestMoreStuff::GetHandleResults>(context)); getHandle(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::GetHandleParams, ::capnproto_test::capnp::test::TestMoreStuff::GetHandleResults>(context)),
false
};
case 10: case 10:
return getNull(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::GetNullParams, ::capnproto_test::capnp::test::TestMoreStuff::GetNullResults>(context)); getNull(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::GetNullParams, ::capnproto_test::capnp::test::TestMoreStuff::GetNullResults>(context)),
false
};
case 11: case 11:
return getEnormousString(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::GetEnormousStringParams, ::capnproto_test::capnp::test::TestMoreStuff::GetEnormousStringResults>(context)); getEnormousString(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::GetEnormousStringParams, ::capnproto_test::capnp::test::TestMoreStuff::GetEnormousStringResults>(context)),
false
};
case 12: case 12:
return methodWithNullDefault(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMoreStuff::MethodWithNullDefaultParams, ::capnproto_test::capnp::test::TestMoreStuff::MethodWithNullDefaultResults>(context)); methodWithNullDefault(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMoreStuff::MethodWithNullDefaultParams, ::capnproto_test::capnp::test::TestMoreStuff::MethodWithNullDefaultResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -20102,7 +20180,7 @@ TestMembrane::Client::waitForeverRequest(::kj::Maybe< ::capnp::MessageSize> size
"test.capnp:TestMembrane", "waitForever", "test.capnp:TestMembrane", "waitForever",
0xc07d8dcd80a69c0cull, 4); 0xc07d8dcd80a69c0cull, 4);
} }
::kj::Promise<void> TestMembrane::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestMembrane::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -20112,25 +20190,40 @@ TestMembrane::Client::waitForeverRequest(::kj::Maybe< ::capnp::MessageSize> size
return internalUnimplemented("test.capnp:TestMembrane", interfaceId); return internalUnimplemented("test.capnp:TestMembrane", interfaceId);
} }
} }
::kj::Promise<void> TestMembrane::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestMembrane::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return makeThing(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::MakeThingParams, ::capnproto_test::capnp::test::TestMembrane::MakeThingResults>(context)); makeThing(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::MakeThingParams, ::capnproto_test::capnp::test::TestMembrane::MakeThingResults>(context)),
false
};
case 1: case 1:
return callPassThrough(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::CallPassThroughParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)); callPassThrough(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::CallPassThroughParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)),
false
};
case 2: case 2:
return callIntercept(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::CallInterceptParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)); callIntercept(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::CallInterceptParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)),
false
};
case 3: case 3:
return loopback(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::LoopbackParams, ::capnproto_test::capnp::test::TestMembrane::LoopbackResults>(context)); loopback(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::LoopbackParams, ::capnproto_test::capnp::test::TestMembrane::LoopbackResults>(context)),
false
};
case 4: case 4:
return waitForever(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::WaitForeverParams, ::capnproto_test::capnp::test::TestMembrane::WaitForeverResults>(context)); waitForever(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::WaitForeverParams, ::capnproto_test::capnp::test::TestMembrane::WaitForeverResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -20167,7 +20260,7 @@ TestMembrane::Thing::Client::interceptRequest(::kj::Maybe< ::capnp::MessageSize>
"test.capnp:TestMembrane.Thing", "intercept", "test.capnp:TestMembrane.Thing", "intercept",
0x9352e4e41f173917ull, 1); 0x9352e4e41f173917ull, 1);
} }
::kj::Promise<void> TestMembrane::Thing::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestMembrane::Thing::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -20177,16 +20270,22 @@ TestMembrane::Thing::Client::interceptRequest(::kj::Maybe< ::capnp::MessageSize>
return internalUnimplemented("test.capnp:TestMembrane.Thing", interfaceId); return internalUnimplemented("test.capnp:TestMembrane.Thing", interfaceId);
} }
} }
::kj::Promise<void> TestMembrane::Thing::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestMembrane::Thing::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return passThrough(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::Thing::PassThroughParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)); passThrough(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::Thing::PassThroughParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)),
false
};
case 1: case 1:
return intercept(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestMembrane::Thing::InterceptParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)); intercept(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestMembrane::Thing::InterceptParams, ::capnproto_test::capnp::test::TestMembrane::Result>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -20355,7 +20454,7 @@ TestKeywordMethods::Client::returnRequest(::kj::Maybe< ::capnp::MessageSize> siz
"test.capnp:TestKeywordMethods", "return", "test.capnp:TestKeywordMethods", "return",
0x9ae342d394247cfcull, 3); 0x9ae342d394247cfcull, 3);
} }
::kj::Promise<void> TestKeywordMethods::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestKeywordMethods::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -20365,22 +20464,34 @@ TestKeywordMethods::Client::returnRequest(::kj::Maybe< ::capnp::MessageSize> siz
return internalUnimplemented("test.capnp:TestKeywordMethods", interfaceId); return internalUnimplemented("test.capnp:TestKeywordMethods", interfaceId);
} }
} }
::kj::Promise<void> TestKeywordMethods::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestKeywordMethods::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return delete_(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestKeywordMethods::DeleteParams, ::capnproto_test::capnp::test::TestKeywordMethods::DeleteResults>(context)); delete_(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestKeywordMethods::DeleteParams, ::capnproto_test::capnp::test::TestKeywordMethods::DeleteResults>(context)),
false
};
case 1: case 1:
return class_(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestKeywordMethods::ClassParams, ::capnproto_test::capnp::test::TestKeywordMethods::ClassResults>(context)); class_(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestKeywordMethods::ClassParams, ::capnproto_test::capnp::test::TestKeywordMethods::ClassResults>(context)),
false
};
case 2: case 2:
return void_(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestKeywordMethods::VoidParams, ::capnproto_test::capnp::test::TestKeywordMethods::VoidResults>(context)); void_(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestKeywordMethods::VoidParams, ::capnproto_test::capnp::test::TestKeywordMethods::VoidResults>(context)),
false
};
case 3: case 3:
return return_(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::TestKeywordMethods::ReturnParams, ::capnproto_test::capnp::test::TestKeywordMethods::ReturnResults>(context)); return_(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::TestKeywordMethods::ReturnParams, ::capnproto_test::capnp::test::TestKeywordMethods::ReturnResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -20559,7 +20670,7 @@ RenamedInterface::Client::renamedMethodRequest(::kj::Maybe< ::capnp::MessageSize
"test.capnp:TestNameAnnotationInterface", "renamedMethod", "test.capnp:TestNameAnnotationInterface", "renamedMethod",
0xd112a69d31ed918bull, 0); 0xd112a69d31ed918bull, 0);
} }
::kj::Promise<void> RenamedInterface::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult RenamedInterface::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -20569,13 +20680,16 @@ RenamedInterface::Client::renamedMethodRequest(::kj::Maybe< ::capnp::MessageSize
return internalUnimplemented("test.capnp:TestNameAnnotationInterface", interfaceId); return internalUnimplemented("test.capnp:TestNameAnnotationInterface", interfaceId);
} }
} }
::kj::Promise<void> RenamedInterface::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult RenamedInterface::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return renamedMethod(::capnp::Capability::Server::internalGetTypedContext< return {
::capnproto_test::capnp::test::RenamedInterface::RenamedMethodParams, ::capnproto_test::capnp::test::RenamedInterface::RenamedMethodResults>(context)); renamedMethod(::capnp::Capability::Server::internalGetTypedContext<
::capnproto_test::capnp::test::RenamedInterface::RenamedMethodParams, ::capnproto_test::capnp::test::RenamedInterface::RenamedMethodResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(

View File

@ -9,7 +9,7 @@
#include <capnp/capability.h> #include <capnp/capability.h>
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
#if CAPNP_VERSION != 7000 #if CAPNP_VERSION != 8000
#error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
#endif #endif
@ -1809,7 +1809,7 @@ extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestPrintIn
extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> DERIVED_CONSTANT; extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> DERIVED_CONSTANT;
extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestGenerics< ::capnproto_test::capnp::test::TestAllTypes, ::capnp::Text>> GENERIC_CONSTANT; extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestGenerics< ::capnproto_test::capnp::test::TestAllTypes, ::capnp::Text>> GENERIC_CONSTANT;
extern const ::capnp::_::ConstData<831> EMBEDDED_DATA; extern const ::capnp::_::ConstData<831> EMBEDDED_DATA;
extern const ::capnp::_::ConstText<4235> EMBEDDED_TEXT; extern const ::capnp::_::ConstText<4236> EMBEDDED_TEXT;
extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> EMBEDDED_STRUCT; extern const ::capnp::_::ConstStruct< ::capnproto_test::capnp::test::TestAllTypes> EMBEDDED_STRUCT;
extern const ::capnp::_::ConstText<10> NON_ASCII_TEXT; extern const ::capnp::_::ConstText<10> NON_ASCII_TEXT;
struct TestAnyPointerConstants { struct TestAnyPointerConstants {
@ -10378,7 +10378,8 @@ class TestGenerics<Foo, Bar>::Inner2<Baz>::DeepNest<Qux>::DeepNestInterface<Quux
public: public:
typedef DeepNestInterface Serves; typedef DeepNestInterface Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -10393,7 +10394,8 @@ protected:
.template castAs<typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2<Baz>::template DeepNest<Qux>::template DeepNestInterface<Quux>>(); .template castAs<typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2<Baz>::template DeepNest<Qux>::template DeepNestInterface<Quux>>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -10689,7 +10691,8 @@ class TestGenerics<Foo, Bar>::Interface<Qux>::Server
public: public:
typedef Interface Serves; typedef Interface Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -10703,7 +10706,8 @@ protected:
.template castAs<typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Interface<Qux>>(); .template castAs<typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Interface<Qux>>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -11278,7 +11282,8 @@ class TestImplicitMethodParams::Server
public: public:
typedef TestImplicitMethodParams Serves; typedef TestImplicitMethodParams Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -11292,7 +11297,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestImplicitMethodParams>(); .template castAs< ::capnproto_test::capnp::test::TestImplicitMethodParams>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -11444,7 +11450,8 @@ class TestImplicitMethodParamsInGeneric<V>::Server
public: public:
typedef TestImplicitMethodParamsInGeneric Serves; typedef TestImplicitMethodParamsInGeneric Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -11458,7 +11465,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestImplicitMethodParamsInGeneric<V>>(); .template castAs< ::capnproto_test::capnp::test::TestImplicitMethodParamsInGeneric<V>>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -12279,7 +12287,8 @@ class TestInterface::Server
public: public:
typedef TestInterface Serves; typedef TestInterface Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -12302,7 +12311,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestInterface>(); .template castAs< ::capnproto_test::capnp::test::TestInterface>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -12801,7 +12811,8 @@ class TestExtends::Server
public: public:
typedef TestExtends Serves; typedef TestExtends Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -12822,7 +12833,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestExtends>(); .template castAs< ::capnproto_test::capnp::test::TestExtends>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -13142,7 +13154,8 @@ class TestExtends2::Server
public: public:
typedef TestExtends2 Serves; typedef TestExtends2 Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -13153,7 +13166,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestExtends2>(); .template castAs< ::capnproto_test::capnp::test::TestExtends2>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -13193,7 +13207,8 @@ class TestPipeline::Server
public: public:
typedef TestPipeline Serves; typedef TestPipeline Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -13216,7 +13231,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestPipeline>(); .template castAs< ::capnproto_test::capnp::test::TestPipeline>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -13968,7 +13984,8 @@ class TestCallOrder::Server
public: public:
typedef TestCallOrder Serves; typedef TestCallOrder Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -13983,7 +14000,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestCallOrder>(); .template castAs< ::capnproto_test::capnp::test::TestCallOrder>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -14171,7 +14189,8 @@ class TestTailCallee::Server
public: public:
typedef TestTailCallee Serves; typedef TestTailCallee Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -14185,7 +14204,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestTailCallee>(); .template castAs< ::capnproto_test::capnp::test::TestTailCallee>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -14408,7 +14428,8 @@ class TestTailCaller::Server
public: public:
typedef TestTailCaller Serves; typedef TestTailCaller Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -14422,7 +14443,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestTailCaller>(); .template castAs< ::capnproto_test::capnp::test::TestTailCaller>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -14547,7 +14569,8 @@ class TestHandle::Server
public: public:
typedef TestHandle Serves; typedef TestHandle Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -14558,7 +14581,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestHandle>(); .template castAs< ::capnproto_test::capnp::test::TestHandle>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -14620,7 +14644,8 @@ class TestMoreStuff::Server
public: public:
typedef TestMoreStuff Serves; typedef TestMoreStuff Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -14683,7 +14708,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestMoreStuff>(); .template castAs< ::capnproto_test::capnp::test::TestMoreStuff>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -16848,7 +16874,8 @@ class TestMembrane::Server
public: public:
typedef TestMembrane Serves; typedef TestMembrane Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -16877,7 +16904,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestMembrane>(); .template castAs< ::capnproto_test::capnp::test::TestMembrane>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -16915,7 +16943,8 @@ class TestMembrane::Thing::Server
public: public:
typedef Thing Serves; typedef Thing Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -16932,7 +16961,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestMembrane::Thing>(); .template castAs< ::capnproto_test::capnp::test::TestMembrane::Thing>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -18127,7 +18157,8 @@ class TestKeywordMethods::Server
public: public:
typedef TestKeywordMethods Serves; typedef TestKeywordMethods Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -18154,7 +18185,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestKeywordMethods>(); .template castAs< ::capnproto_test::capnp::test::TestKeywordMethods>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -18765,7 +18797,8 @@ class TestAuthenticatedBootstrap<VatId>::Server
public: public:
typedef TestAuthenticatedBootstrap Serves; typedef TestAuthenticatedBootstrap Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -18780,7 +18813,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::TestAuthenticatedBootstrap<VatId>>(); .template castAs< ::capnproto_test::capnp::test::TestAuthenticatedBootstrap<VatId>>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -19884,7 +19918,8 @@ class RenamedInterface::Server
public: public:
typedef RenamedInterface Serves; typedef RenamedInterface Serves;
::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCall(
uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
override; override;
@ -19899,7 +19934,8 @@ protected:
.template castAs< ::capnproto_test::capnp::test::RenamedInterface>(); .template castAs< ::capnproto_test::capnp::test::RenamedInterface>();
} }
::kj::Promise<void> dispatchCallInternal(uint16_t methodId, ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context); ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
}; };
#endif // !CAPNP_LITE #endif // !CAPNP_LITE
@ -28487,7 +28523,7 @@ template <typename Foo, typename Bar>
template <typename Baz> template <typename Baz>
template <typename Qux> template <typename Qux>
template <typename Quux> template <typename Quux>
::kj::Promise<void> TestGenerics<Foo, Bar>::Inner2<Baz>::DeepNest<Qux>::DeepNestInterface<Quux>::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestGenerics<Foo, Bar>::Inner2<Baz>::DeepNest<Qux>::DeepNestInterface<Quux>::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -28501,13 +28537,16 @@ template <typename Foo, typename Bar>
template <typename Baz> template <typename Baz>
template <typename Qux> template <typename Qux>
template <typename Quux> template <typename Quux>
::kj::Promise<void> TestGenerics<Foo, Bar>::Inner2<Baz>::DeepNest<Qux>::DeepNestInterface<Quux>::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestGenerics<Foo, Bar>::Inner2<Baz>::DeepNest<Qux>::DeepNestInterface<Quux>::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return call(::capnp::Capability::Server::internalGetTypedContext< return {
typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2<Baz>::template DeepNest<Qux>::template DeepNestInterface<Quux>::CallParams, typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2<Baz>::template DeepNest<Qux>::template DeepNestInterface<Quux>::CallResults>(context)); call(::capnp::Capability::Server::internalGetTypedContext<
typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2<Baz>::template DeepNest<Qux>::template DeepNestInterface<Quux>::CallParams, typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2<Baz>::template DeepNest<Qux>::template DeepNestInterface<Quux>::CallResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -28867,7 +28906,7 @@ template <typename Qux>
} }
template <typename Foo, typename Bar> template <typename Foo, typename Bar>
template <typename Qux> template <typename Qux>
::kj::Promise<void> TestGenerics<Foo, Bar>::Interface<Qux>::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestGenerics<Foo, Bar>::Interface<Qux>::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -28879,13 +28918,16 @@ template <typename Qux>
} }
template <typename Foo, typename Bar> template <typename Foo, typename Bar>
template <typename Qux> template <typename Qux>
::kj::Promise<void> TestGenerics<Foo, Bar>::Interface<Qux>::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestGenerics<Foo, Bar>::Interface<Qux>::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return call(::capnp::Capability::Server::internalGetTypedContext< return {
typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2< ::capnp::Text>, typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Interface<Qux>::CallResults>(context)); call(::capnp::Capability::Server::internalGetTypedContext<
typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Inner2< ::capnp::Text>, typename ::capnproto_test::capnp::test::TestGenerics<Foo, Bar>::template Interface<Qux>::CallResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -29831,7 +29873,7 @@ template <typename V>
0xdf9ccdeb81a704c9ull, 0); 0xdf9ccdeb81a704c9ull, 0);
} }
template <typename V> template <typename V>
::kj::Promise<void> TestImplicitMethodParamsInGeneric<V>::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestImplicitMethodParamsInGeneric<V>::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -29842,13 +29884,16 @@ template <typename V>
} }
} }
template <typename V> template <typename V>
::kj::Promise<void> TestImplicitMethodParamsInGeneric<V>::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestImplicitMethodParamsInGeneric<V>::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return call(::capnp::Capability::Server::internalGetTypedContext< return {
typename ::capnproto_test::capnp::test::TestImplicitMethodParamsInGeneric<V>::template CallParams<>, ::capnproto_test::capnp::test::TestGenerics< ::capnp::AnyPointer, ::capnp::AnyPointer>>(context)); call(::capnp::Capability::Server::internalGetTypedContext<
typename ::capnproto_test::capnp::test::TestImplicitMethodParamsInGeneric<V>::template CallParams<>, ::capnproto_test::capnp::test::TestGenerics< ::capnp::AnyPointer, ::capnp::AnyPointer>>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(
@ -33401,7 +33446,7 @@ template <typename VatId>
0xea72cc77253798cdull, 0); 0xea72cc77253798cdull, 0);
} }
template <typename VatId> template <typename VatId>
::kj::Promise<void> TestAuthenticatedBootstrap<VatId>::Server::dispatchCall( ::capnp::Capability::Server::DispatchCallResult TestAuthenticatedBootstrap<VatId>::Server::dispatchCall(
uint64_t interfaceId, uint16_t methodId, uint64_t interfaceId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (interfaceId) { switch (interfaceId) {
@ -33412,13 +33457,16 @@ template <typename VatId>
} }
} }
template <typename VatId> template <typename VatId>
::kj::Promise<void> TestAuthenticatedBootstrap<VatId>::Server::dispatchCallInternal( ::capnp::Capability::Server::DispatchCallResult TestAuthenticatedBootstrap<VatId>::Server::dispatchCallInternal(
uint16_t methodId, uint16_t methodId,
::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) { ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
switch (methodId) { switch (methodId) {
case 0: case 0:
return getCallerId(::capnp::Capability::Server::internalGetTypedContext< return {
typename ::capnproto_test::capnp::test::TestAuthenticatedBootstrap<VatId>::GetCallerIdParams, typename ::capnproto_test::capnp::test::TestAuthenticatedBootstrap<VatId>::GetCallerIdResults>(context)); getCallerId(::capnp::Capability::Server::internalGetTypedContext<
typename ::capnproto_test::capnp::test::TestAuthenticatedBootstrap<VatId>::GetCallerIdParams, typename ::capnproto_test::capnp::test::TestAuthenticatedBootstrap<VatId>::GetCallerIdResults>(context)),
false
};
default: default:
(void)context; (void)context;
return ::capnp::Capability::Server::internalUnimplemented( return ::capnp::Capability::Server::internalUnimplemented(

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup> <ItemGroup>
<!--<PackageReference Include="Nerdbank.GitVersioning"> <PackageReference Include="Nerdbank.GitVersioning">
<Version>3.0.28</Version> <Version>3.4.240</Version>
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference>--> </PackageReference>-->
</ItemGroup> </ItemGroup>

View File

@ -9,8 +9,10 @@ install:
- cd c:\tools\vcpkg - cd c:\tools\vcpkg
- vcpkg integrate install - vcpkg integrate install
- vcpkg install capnproto - vcpkg install capnproto
- set PATH_COPY=%PATH%
- set PATH=%PATH%;c:\tools\vcpkg\installed\x86-windows\tools\capnproto
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
- dotnet tool install -g nbgv - dotnet tool install -g nbgv --version 3.4.240
- choco install reportgenerator.portable --version=4.5.6 --force -y - choco install reportgenerator.portable --version=4.5.6 --force -y
- dotnet tool install -g coveralls.net --version 1.0.0 - dotnet tool install -g coveralls.net --version 1.0.0
init: init:
@ -32,10 +34,10 @@ before_build:
- cmd: dotnet restore ./CapnpC.CSharp.MsBuild.Generation.Tests/CapnpC.CSharp.MsBuild.Generation.Tests.csproj --verbosity m - cmd: dotnet restore ./CapnpC.CSharp.MsBuild.Generation.Tests/CapnpC.CSharp.MsBuild.Generation.Tests.csproj --verbosity m
- cmd: dotnet restore ./capnpc-csharp/capnpc-csharp.csproj --verbosity m - cmd: dotnet restore ./capnpc-csharp/capnpc-csharp.csproj --verbosity m
build_script: build_script:
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Debug" - cmd: msbuild ./Capnp.Net.sln /p:Configuration="Debug" -V:m
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Release" - cmd: msbuild ./Capnp.Net.sln /p:Configuration="Release" -V:m
- cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Debug" - cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Debug" -V:m
- cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Release" - cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Release" -V:m
- ps: scripts\capnpc-csharp-pack.ps1 - ps: scripts\capnpc-csharp-pack.ps1
after_build: after_build:
# For once the build has completed # For once the build has completed
@ -60,10 +62,9 @@ artifacts:
type: zip type: zip
test_script: test_script:
- cmd: | - cmd: |
nbgv get-version -v NuGetPackageVersion >> version.txt nbgv get-version -v NuGetPackageVersion >> myversion.txt
set /P VERSION=< version.txt set /P VERSION=< myversion.txt
vstest.console /logger:Appveyor /inIsolation CapnpC.CSharp.Generator.Tests\bin\Release\netcoreapp3.1\CapnpC.CSharp.Generator.Tests.dll vstest.console /logger:Appveyor /inIsolation CapnpC.CSharp.Generator.Tests\bin\Release\netcoreapp3.1\CapnpC.CSharp.Generator.Tests.dll
choco install capnproto --source="https://chocolatey.org/api/v2" --force -y
cd %APPVEYOR_BUILD_FOLDER%\capnpc-csharp cd %APPVEYOR_BUILD_FOLDER%\capnpc-csharp
dotnet tool install --global --add-source ./nupkg capnpc-csharp --version %VERSION% dotnet tool install --global --add-source ./nupkg capnpc-csharp --version %VERSION%
cd %APPVEYOR_BUILD_FOLDER%\install-test cd %APPVEYOR_BUILD_FOLDER%\install-test
@ -74,6 +75,7 @@ test_script:
cd %APPVEYOR_BUILD_FOLDER%\install-test cd %APPVEYOR_BUILD_FOLDER%\install-test
notinstalled-test notinstalled-test
cd %APPVEYOR_BUILD_FOLDER%\chocolatey\install cd %APPVEYOR_BUILD_FOLDER%\chocolatey\install
choco install capnproto --source="https://chocolatey.org/api/v2" --force -y
choco install capnpc-csharp-win-x86 --source=".;https://chocolatey.org/api/v2" --force -y --version %VERSION% --pre choco install capnpc-csharp-win-x86 --source=".;https://chocolatey.org/api/v2" --force -y --version %VERSION% --pre
cd %APPVEYOR_BUILD_FOLDER%\install-test cd %APPVEYOR_BUILD_FOLDER%\install-test
compile-test compile-test

View File

@ -8,8 +8,8 @@ $csprojDir = "$scriptDir\..\capnpc-csharp"
$csprojFile = "capnpc-csharp.csproj" $csprojFile = "capnpc-csharp.csproj"
$installDir = "$chocoDir\install" $installDir = "$chocoDir\install"
dotnet build -c Release "$scriptDir\..\Capnp.Net.sln" dotnet build -c Release "$scriptDir\..\Capnp.Net.sln" --verbosity m
dotnet publish -c Release -r win-x86 --self-contained -o "$chocoDir\$id_win_x86\bin" "$csprojDir\$csprojFile" dotnet publish -c Release -r win-x86 --self-contained -o "$chocoDir\$id_win_x86\bin" "$csprojDir\$csprojFile" --verbosity m
# dotnet publish -c Release -o "$chocoDir\$id\bin" "$csprojDir\$csprojFile" # dotnet publish -c Release -o "$chocoDir\$id\bin" "$csprojDir\$csprojFile"
If(!(test-path $installDir)) If(!(test-path $installDir))