示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: protected org.neo4j.causalclustering.core.replication.ReplicatedContent unmarshal0(org.neo4j.storageengine.api.ReadableChannel channel) throws java.io.IOException, org.neo4j.causalclustering.messaging.EndOfStreamException
            protected internal override ReplicatedContent Unmarshal0(ReadableChannel channel)
            {
                sbyte type = channel.Get();
                ContentBuilder <ReplicatedContent> contentBuilder = Serializer.unmarshal(type, channel);

                while (!contentBuilder.Complete)
                {
                    type           = channel.Get();
                    contentBuilder = contentBuilder.Combine(Serializer.unmarshal(type, channel));
                }
                return(contentBuilder.Build());
            }
示例#2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public ContentBuilder<org.neo4j.causalclustering.core.replication.ReplicatedContent> decode(io.netty.buffer.ByteBuf byteBuf) throws java.io.IOException, org.neo4j.causalclustering.messaging.EndOfStreamException
            public override ContentBuilder <ReplicatedContent> Decode(ByteBuf byteBuf)
            {
                return(Serializer.unmarshal(byteBuf.readByte(), byteBuf));
            }